SDL/src/video/x11
Simon McVittie 412ceb84d4 video: Only check major version in SDL_GetWindowWMInfo
Since #5602, SDL is intended to have the same ABI across the whole
major-version 2 cycle, so we should not check that the minor version
matches the one that was used to compile an application.

There are two checks that could make sense here.

The first check is that the major version matches the expected major
version. This is usually unnecessary and is not usually done (if we're
calling into the wrong library we'll likely crash anyway), but since we
have the information, we might as well continue to use it.

The second check is whether the version provided by the caller is
equal to or greater than a threshold version at which additional fields
were added to the struct. If it is, we should populate those fields;
if it is not, then we cannot. This is only useful on platforms where
additional fields have genuinely been added during the lifetime of
SDL 2, like Windows and DirectFB (but not X11).

This commit changes the first check to be consistent about only looking
at the minor version, while leaving the second check using SDL_VERSIONNUM
(which will be removed or widened in SDL 3, but it's fine for now).

Resolves: https://github.com/libsdl-org/SDL/issues/5711
Fixes: cd7c2f1 "Switch versioning scheme to be the same as GLib and Flatpak"
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-05-24 08:56:23 -07:00
..
edid-parse.c Fixed bug #3232 - Integer overflow generates Illegal instruction under sanitizers + see bug #4995 2021-11-23 09:30:42 +01:00
edid.h Fixed edid parsing code for older gcc compilers 2016-12-12 09:18:42 -08:00
SDL_x11clipboard.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11clipboard.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11dyn.c x11: Remove XVidMode and Xinerama support. 2022-04-26 23:17:13 -04:00
SDL_x11dyn.h x11: Remove XVidMode and Xinerama support. 2022-04-26 23:17:13 -04:00
SDL_x11events.c x11: revert checks for _NET_WM_STATE_FULLSCREEN changes. 2022-04-25 14:00:04 -04:00
SDL_x11events.h Fixed bug #1650: X11 doesn't set KMOD_NUM and KMOD_CAPS to system state 2022-03-24 18:09:45 +01:00
SDL_x11framebuffer.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11framebuffer.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11keyboard.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_x11keyboard.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11messagebox.c x11: Minor cleanups and corrections in X11_ShowMessageBox. 2022-03-24 14:25:34 -04:00
SDL_x11messagebox.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11modes.c fix build 2022-04-27 10:03:32 +03:00
SDL_x11modes.h x11: Remove XVidMode and Xinerama support. 2022-04-26 23:17:13 -04:00
SDL_x11mouse.c Attempt to get the X1 and X2 button state on X11 by using the current event state instead of direct X11 query. 2022-05-19 00:35:22 -07:00
SDL_x11mouse.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11opengl.c x11: Don't unload libGL.so to prevent a crash in XCloseDisplay() 2022-04-04 21:39:41 -07:00
SDL_x11opengl.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11opengles.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11opengles.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11shape.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11shape.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11sym.h Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_x11touch.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11touch.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11video.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11video.h x11: Remove XVidMode and Xinerama support. 2022-04-26 23:17:13 -04:00
SDL_x11vulkan.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11vulkan.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11window.c video: Only check major version in SDL_GetWindowWMInfo 2022-05-24 08:56:23 -07:00
SDL_x11window.h x11: Remove XVidMode and Xinerama support. 2022-04-26 23:17:13 -04:00
SDL_x11xfixes.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11xfixes.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11xinput2.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_x11xinput2.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00