src/video


Log

Author Commit Date CI Message
Takase 03dcee17 2023-07-07T08:53:00 video(wayland): use both --icon and --icon-name for Zenity (#7897) video(wayland): use both --icon and --icon-name for Zenity Many distros ship an older version of Zenity that supports GTK3, while some distros ship newer version of Zenity which uses libadwaita. This command tries to use --icon and fall back to --icon-name when it fails. (cherry picked from commit b90343e512bb7e8a026b3f78947c67693c63ff0c)
Ozkan Sezer 5e215713 2023-07-04T02:24:28 fixed windows build after commit 7e8be3f
Sam Lantinga 699f8697 2023-07-03T16:06:59 Retry to open the clipboard in case another application has it open This fixes 'testautomation --filter clipboard_testClipboardTextFunctions' on Windows (cherry picked from commit c24496727cdd40d5c0ffdf7b6a61085ec3a2766d) (cherry picked from commit 7e8be3f2804b8dfca1ede2a4e463f8a0b2b352d5)
Anonymous Maarten 5d9013be 2023-05-26T23:00:56 wayland: don't use libdecor_frame_get_* functions when header doesn't have it and we're statically linking to the library. This fixes building SDL with -DSDL_WAYLAND_SHARED=OFF (cherry picked from commit 5b5b67df203e9f8391e7e53aa5de54abf14c482e) (cherry picked from commit e6f635ca172027f57542b715787ac5b50f3f6d33)
Sam Lantinga ba170daf 2023-06-27T16:07:56 Don't crash if SDL_MapRGB() and SDL_MapRGBA() are passed a NULL format (cherry picked from commit fadc4916a9bcc410c2148a91bf0adf742410a4ba) (cherry picked from commit 0ba93e4aac8232de45e2a6df4d0a42ec53f53ec3)
Sam Lantinga de6963ea 2023-06-21T08:42:38 Apply DPI scale to mouse coordinates in SDL_WarpMouseInWindow() Fixes https://github.com/libsdl-org/SDL/issues/7855 (cherry picked from commit 657c346556f18044dac04957ee7894220e86ac8e)
Sam Lantinga a3d4fd71 2023-06-19T08:36:30 Added support for blitting SDL_PIXELFORMAT_INDEX1LSB Fixes https://github.com/libsdl-org/SDL/issues/7844
Eric Wasylishen 76392f4f 2023-01-11T19:45:01 Handle DPI scaling in SDL_GetWindowSurface Fixes DPI awareness of testdrawchessboard (previously, the surface was being created in points instead of pixels, resulting in the demo app only drawing in a corner of the screen on High-DPI displays) *_CreateWindowFramebuffer()/*_UpdateWindowFramebuffer(): are updated to use SDL_GetWindowSizeInPixels instead of SDL_GetWindowSize() or window->w/window->h. Most of the _CreateWindowFramebuffer backends are untested except for Windows. Fixes #7047 (cherry picked from commit 67c91353e01f6f2c0cc80c17eeddbad6def7cb01)
Ryan C. Gordon 2afb49ba 2023-06-11T12:43:47 cocoa: Warp mouse to center of window before enabling relative mouse. This prevents the case where the mouse might be at the edge of the window when enabling relative mode, which confuses macOS, at it might believe the user is attempting to resize the window. Fixes #6994.
Sam Lantinga 2aa8525e 2023-06-10T09:29:09 Fixed build
Sam Lantinga 36033e38 2023-06-10T08:54:36 Make it clear that you can't mix 2D rendering and the window surface API Also added functions to query and destroy the window surface so you can switch between modes if you want. See https://github.com/pygame-community/pygame-ce/issues/2190 for more details.
Ozkan Sezer f5b3247a 2023-06-08T03:40:32 further mouse relative motion fix for os/2 (thanks Andrey Vasilkin)
Ryan C. Gordon aa536217 2023-06-07T15:42:22 x11: check if window size/position has changed during SDL_ShowWindow. Fixes #4216. (cherry picked from commit 49b5cfa6c5cb9bb8cecce508e12fa7f8e0cc302f)
Ozkan Sezer b1324fbc 2023-06-05T11:50:50 fixed os/2 mouse relative motion not working (thanks Andrey Vasilkin,) for issue reported at https://github.com/bitwiseworks/SDL2-os2/issues/5
Sam Lantinga 4700fbcb 2023-06-04T05:37:06 Don't bother re-encoding Latin1 characters in the ASCII range (cherry picked from commit 6150b5b3cbde0e592c4ffe822f66aa5f9c90c3d9)
Sam Lantinga bfef7c30 2023-06-04T02:06:52 Only convert the result of XLookupString() if it's not already UTF-8 Fixes https://github.com/libsdl-org/SDL/issues/7766 (cherry picked from commit 491ae20d963cff397b5980b31d142d576e74becb)
Alibek Omarov 68e3e990 2023-06-02T05:55:42 wayland: reset orientation bitmask before reading values from hint on QtWayland Signed-off-by: Alibek Omarov <a1ba.omarov@gmail.com>
Ryan C. Gordon 379a6f4d 2023-05-30T17:04:31 x11: Attempt to wait for SDL_MaximizeWindow to complete before returning. Fixes #7070.
Ryan C. Gordon d275851d 2023-05-29T14:46:58 windows: Don't allow non-resizable windows to be maximized. Fixes #6346.
Anonymous Maarten c6897636 2023-02-18T04:48:24 Fix -Wunused-function warning when configuring with -DSDL_X11_XINPUT2=OFF
Ryan C. Gordon a535cc62 2023-05-25T10:04:44 video: Only specify some GL context attributes if not the explicit default. Just in case it upsets some OpenGL drivers unnecessarily. Fixes #7730. (cherry picked from commit d4bc393efebdd45a95430397df106b69b1c26df3)
Sam Lantinga 3f1fd5ab 2023-05-23T10:59:03 Updated source to match SDL function prototype style
Frank Praznik 891c89ee 2023-05-23T11:15:48 Fix unused variable warnings
Frank Praznik e2b8d965 2023-05-23T10:25:36 wayland: Validate surfaces and window data before sending touch events Ensure that incoming touch events originate from valid surfaces owned by SDL and have proper window data before forwarding them to the touch subsystem, or the window focus pointer that is sent with the event may not be a pointer to an SDL window.
Sam Lantinga a2f4783e 2023-05-22T11:30:42 Don't map the top keyboard row to numbers when using the one-handed DVORAK layouts (thanks @tormol!) Fixes https://github.com/libsdl-org/SDL/pull/5127
Caleb Cornett 2001a891 2023-05-20T13:09:46 Fix Xbox link error from IsRectEmpty (cherry picked from commit 376a3cd100a3d59e887496c75a1ac49ab4a2d8ec)
M. P. Halpin 1ee9a437 2022-12-31T20:45:35 Stop beep when running iOS apps on ARM-based Macs (cherry picked from commit bbf38bbbc334bc0ee90d3eec228a968d8fc1689e)
Sam Lantinga 69644346 2023-05-20T11:09:36 Added the hint SDL_HINT_ENABLE_SCREEN_KEYBOARD to control whether the on-screen keyboard should be shown when text input is active Fixes https://github.com/libsdl-org/SDL/issues/7160
valid-ptr 424bc4bc 2023-05-17T20:07:22 SDL emscripten port: preventDefault should not be called on mousedown. Otherwise mouseup will not be fired outside iframe in Chrome-based browsers
Ryan C. Gordon 0eea92c8 2023-05-16T14:38:44 blit: Add a case for 8-bit blits that sdl12-compat exposed. sdl12-compat can get into a state where a color-keyed surface is marked for blending, but wants to blend with full alpha (which is the same as _not_ blending), so rather than fail to find a blitter in that case, it just selects the colorkey blitter. Reference https://github.com/libsdl-org/sdl12-compat/issues/233
Sam Lantinga de937286 2023-05-06T08:44:19 Removed redundant __powerpc__ check (cherry picked from commit b6df25c33497388f16a4ed2af896ef14277c8865)
Jeremy Rand 5e74365e 2023-05-06T03:24:02 SDL_blit_N.c: Move ppc64le swizzle outside of loop An in-place swizzle mutation was erroneously inside of a loop, which caused each consecutive 4-pixel vector to alternate between correct and incorrect endianness. The bug was introduced in 715e070d299fc547cce8c52915b75e6316af6bff. Thanks to RobbieAB for reporting the bug. Fixes https://github.com/libsdl-org/SDL/issues/3428 (cherry picked from commit 9142292f4ad6d9bc8a2bc7c874e2fde54befeb9b)
Loc(Elliot) 3e64fec9 2023-05-04T19:26:50 Fix bug memory acess Bitmap is not initialized before use, that cause segmentation fault on function use it. Fix by allocate memory before use.
Frank Praznik 132b8874 2023-04-27T13:06:00 wayland: Destroy proxy wrappers and callbacks before event queues Destroy any proxy wrappers and callbacks before the associated event queues to silence libwayland warnings about destroying the queues while proxies are still attached.
Linus Probert 8b39eb9b 2023-04-24T20:48:42 wayland: Fixes a memory leak wheere primary selection isn't freed (cherry picked from commit 43f65a6ef08a502485c6107b255a9b22c890acd5)
Mingjie Shen a688ecd6 2023-04-23T00:26:03 Check return value of SDL_malloc() (cherry picked from commit a4604cb0d616db97921a2674a63b45f3fdfb81bc)
Cyril Dubet 7914234b 2023-04-05T01:21:41 Fix key code names for ISO keyboard layouts (cherry picked from commit 60dcaff7eb25a01c9c87a5fed335b29a5625b95b)
Jerome Duval eb0d214c 2023-03-29T21:28:21 Haiku: use a BLooper for events. only create a BApplication when it doesn't already exist.
Frank Praznik 55f74c32 2023-03-29T15:16:59 x11: Don't allow the changing of certain scancodes The X11 driver uses scancodes derived from keysyms to map the scancodes for extended keys to the physical keyboard, however, this can be incorrect when using certain XKB options (e.g. caps:swapescape), which changes the keysyms emitted by certain keys, but does not imply that their scancodes or positions should be altered. Mark selected scancodes as being non-remappable so that their scancodes aren't changed by toggling XKB mapping options.
Anonymous Maarten 85fecbb1 2023-03-18T20:47:24 video: fix warnings about unused variables when building without duff's loop (cherry picked from commit 0c3777d5661dd0bf60ba3db634f79c2121371092)
Anonymous Maarten 1402d135 2023-03-18T20:34:38 video/blit: fix -Wimplicit-fallthrough warnings (cherry picked from commit f7961b7c9ad598b031cd033f19e93c6d882e8e41)
Sylvain 16c9bad7 2023-03-28T09:49:45 Safety fix: clear "_this->wakeup_window" when destroying the window (cherry picked from commit c838ccf0e3a330ebbcf433698b8f5370c6fa80d6)
Sylvain 6574e5eb 2023-03-28T09:48:58 Safety fix: clear "_this->current_glwin" when destroying the window (cherry picked from commit 0c048d98af449f1bc540e256c90eb792f1effff4)
Sylvain 4fa21ee5 2023-03-28T09:28:17 Fixed bug #7515 - Window still grabbed after destroying
Anonymous Maarten cd64e0b6 2023-03-26T16:31:18 SDL_blit_copy: Don't call potentially FPU using SDL_memcpy in SDL_memcpyMMX
Sylvain 2dddaa7d 2023-03-25T10:24:38 backport x11/sdl2 fixes 4b1378f X11: fix size/position (test video_setWindowCenteredOnDisplay) this fix x11 backend to correctly pass video_setWindowCenteredOnDisplay() get border values early (eg status bar) wait for size/position change to get valid values d4d26e0 testautomation_video: if SDL_SetWindowSize/Position isn't honored, we should check there is an event x11: send the events if various occasions
Sylvain 23bce27b 2023-03-16T09:49:15 Change SDL_BLENDMODE_MUL for gl renderers Add FIXME for PSP and DirectFB
Sylvain c078dfcf 2023-03-16T09:47:43 Refresh generation of SDL_blit_auto.c after simplifying sdlgenblit.pl
Sylvain 18c4db67 2023-03-16T09:47:34 Simplify SDL_BLENDMODE_MUL in sdlgenblit.pl
Sylvain 7d26ba75 2023-03-16T09:46:44 Simplify SDL_BLENDMODE_MUL
Sylvain bd70ce7f 2023-03-16T09:43:38 Refresh generation of SDL_blit_auto.c
Sam Lantinga 0d763800 2023-03-09T15:10:00 Code style: changed "sizeof foo" to "sizeof(foo)" (thanks @sezero!) (cherry picked from commit c6443d86c92e962683a1efe5f123a144988875b5)
Sam Lantinga 46d14337 2023-03-09T10:31:39 If the client rect is empty, use the last known window size This happens on Windows 11 with fullscreen desktop windows when the desktop is brought up with the Windows+D shortcut. Fixes https://github.com/libsdl-org/SDL/issues/7419 (cherry picked from commit 2ca727aec6f5f264620f80999beb5ef77eefec4a)
Deve 1c2f8252 2023-03-08T23:57:08 Fixed incorrect modifier keys handling on macOS (cherry-picked from commit 45a58b7882a253db29b1b1393bc2a1fe030d5955)
Frank Praznik 6a999d16 2023-03-08T19:18:35 wayland: Always use a scale factor of 1 for exclusive fullscreen emulation
Sam Lantinga f5c0760c 2023-03-08T01:15:21 Disassociate the SDLOpenGLContext from the view before deleting it If we don't do this, the view will be blanked even if another context is current and rendering from that context won't be visible. Fixes https://github.com/libsdl-org/SDL/issues/4986
Sam Lantinga 63e6c19b 2023-03-08T01:13:00 Use SDL_GL_DeleteContext instead of Cocoa_GL_DeleteContext for context cleanup That will make the current context NULL before deleting the context.
Sam Lantinga 1bd9ebf5 2023-03-07T10:10:43 If we're not the current fullscreen window and we don't want to be fullscreen, don't touch the current video mode Fixes an assertion in qemu on macOS, which creates multiple hidden windows: 2023-03-07 09:56:55.304 qemu-system-i386[9931:2984587] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'NSWindowStyleMaskFullScreen cleared on a window outside of a full screen transition. Called from ( 0 AppKit 0x00000001968f77ac __25-[NSWindow setStyleMask:]_block_invoke + 140 1 AppKit 0x00000001968f76cc NSPerformVisuallyAtomicChange + 108 2 AppKit 0x00000001968f7580 -[NSWindow setStyleMask:] + 188 3 libSDL2-2.0.0.dylib 0x0000000106531328 Cocoa_SetWindowFullscreen + 568 4 libSDL2-2.0.0.dylib 0x0000000106501700 SDL_UpdateFullscreenMode + 1316 5 libSDL2-2.0.0.dylib 0x0000000106504270 SDL_SetWindowFullscreen_REAL + 328 6 libSDL2-2.0.0.dylib 0x000000010650117c SDL_FinishWindowCreation + 100 7 libSDL2-2.0.0.dylib 0x0000000106500998 SDL_CreateWindow_REAL + 1812 8 libSDL2-2.0.0.dylib 0x00000001063efd54 SDL_CreateWindow + 76 9 qemu-system-i386 0x00000001050aa600 sdl2_window_create + 192 10 qemu-system-i386 0x00000001050a9fa0 sdl2_2d_switch + 196 11 qemu-system-i386 0x0000000104e9c784 displaychangelistener_display_console + 524 12 qemu-system-i386 0x0000000104e9e36c register_displaychangelistener + 264 13 qemu-system-i386 0x00000001050ab6d0 sdl2_display_init + 304 14 qemu-system-i386 0x000000010505c870 qemu_init + 13380
Sam Lantinga e0e79419 2023-03-07T10:08:55 Fixed which window we check flags for when updating fullscreen mode
Sam Lantinga 6ff3e49b 2023-02-28T15:54:15 Follow the same pattern for releasing the window data in the UIKit driver Possible fix for https://github.com/libsdl-org/SDL/issues/7361 (cherry picked from commit ebdb32065163b8ee1ef9c1a0dfa601335b4ad83d)
Sam Lantinga 031348d3 2023-02-28T09:02:01 Fixed SDL windows getting the maximized state after leaving fullscreen on macOS (cherry picked from commit 2df08fb1b27b721998a1380a2acdbe1494b5591e)
Torge Matthies 711a458b 2023-02-16T19:11:43 x11: Fix duplicate Xinput2 event reception Passing True for owner_events in the XGrabPointer call makes all XI_RawMotion events appear in the queue twice, with the only difference between them being the value of XGenericEventCookie::cookie. These have always been filtered out by a check in the XI_RawMotion handler, however with a mouse that polls at more than 1 kHz frequency, there also exist legitimate events that appear indistinguishable from these duplicated events. These must not be filtered out, otherwise the pointer may move at an inconsistent speed, appearing like a bad pointer acceleration implementation. Change owner_events to False in the XGrabPointer and remove the duplicate event detection code to fix this. Signed-off-by: Torge Matthies <openglfreak@googlemail.com> (cherry picked from commit f18b5656f6f859e4d4e096d290afd9fae884a5b8)
Sam Lantinga ad09976e 2023-02-24T09:20:38 Fixed relative mouse motion over remote desktop Setting the cursor clip area to a single pixel prevents the relative mouse motion remote desktop warping from working, so the mouse is never recentered. (cherry picked from commit daffe02b117ccd484763eadc716e4d4453c89868)
Sam Lantinga a3a45f67 2023-02-23T09:14:53 Fixed view frame from flipping back and forth between landscape and portrait on iOS (cherry picked from commit b2d913883c39e0a53e55eb9286d7e442d565554e)
Sam Lantinga 0efb31ef 2023-02-20T10:40:54 cocoa/gles: do not unload EGL when context is destroyed (cherry picked from commit e8091b89830c3b9bb19eff76463a6e2525f05fa5)
Marc-André Lureau eb22fbc8 2023-02-16T18:47:36 windows/gles: do not unload EGL when context is destroyed It's legitimate to have multiple contexts. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> (cherry picked from commit 93861e1de00a76080fa6ed756a6bd9c764b3ec07)
Marc-André Lureau 479bc2d5 2023-02-16T18:47:16 windows/gles: correct indentation Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> (cherry picked from commit 654965a6286ccb3ef861310d0cff578788641091)
Sam Lantinga 7b060072 2023-02-19T09:57:35 Fixed typo (thanks @Iniquitatis!) (cherry picked from commit ced02319a6bd001c1c2ce85a48887efe3a7b79d8)
Lauri Kasanen 7d55ccb8 2023-02-19T16:04:47 Fix GetGlobalMouseState when xi2 is not available at runtime (cherry picked from commit 0123d6311d5c0059d617324426ef7eef8d577d9b)
Le Philousophe 74e8a645 2023-02-18T18:21:09 Fix window size in X11 when window manager refuses to resize (cherry picked from commit a67ae8eed57f4545c739e6eb3a4b8c1169d3afbc)
Ozkan Sezer da6bce4f 2023-02-11T23:51:28 SDL_x11dyn.h: include XInput2.h also for Xfixes Fixes https://github.com/libsdl-org/SDL/issues/7343
Bruce Mitchener 7d2012af 2023-02-10T13:51:16 emscripten: Update deprecated calls to EM_ASM*. `EM_ASM_` and `EM_ASM_INT_V` are calls that have been deprecated for a long time. Since the return value isn't used for the call to `EM_ASM_`, it can be replaced with `EM_ASM`. `EM_ASM_INT_V` is now (for the last few years) `EM_ASM_INT`. (cherry picked from commit a8e89f2567b9069c919f9b21996e0a46cd4bb679)
Sylvain 17515f4a 2023-02-04T15:51:37 Backport simplify flags PR #7220
Sasha Szpakowski 17ecb11e 2023-02-01T18:56:33 macOS: fix initial Metal drawable size in certain multi-display setups (cherry picked from commit baca26d72701655157c2a1ab678c2d5af0830d53)
Matt Durgavich dfc56cfc 2023-01-05T11:54:27 Fix For issue #6948 (#6991) MessageBoxes attached to a window in macOS should use modal APIs and not use a poll/sleep pattern on the main thread. Sleeping the main thread makes the NSWindow message loop sluggish and interferes with external applications that need to send messages to that window, such as VoiceOver.
Anonymous Maarten 33ec2a5e 2023-01-23T20:41:23 vita: fix reformatting error in SDL_vtagl_pvr.c
Frank Praznik ea179abd 2023-01-16T13:39:26 wayland: Enforce or override libdecor minimum window size libdecor plugins can change the min/max window size values internally to enforce a minimum window size, and errors and crashes can result if the window size is below the internal limit. On versions of libdecor >= 0.1.1, the minimum width and height can be queried and the minimum required window size will be enforced. The application requested window size is still respected, however, the actual window may be slightly larger than the drawable area to accommodate the required libdecor minimum size. On version 0.1.0 of libdecor, which lacks the function to retrieve the minimum size, the internal limits are overridden before committing a frame, so that the internal limits always match the window size as a workaround, even if the window is technically smaller than the plugin would normally allow. (cherry picked from commit 423a82cd4b65cf72668551093bfdf58d49bce9ce)
raphasamp eabd88ed 2023-01-22T08:09:24 Update SDL_vitagles_pvr.c This was broken unintentionally during #6545.(cherry picked from commit 9211c0b639ad32865efa4980d07fc24f3f4a1577)
Guldoman 7b8f0ba8 2023-01-19T21:12:51 wayland: Set `APPLICATION` scancode name to `Menu` This mimics the behavior of the other platforms. (cherry picked from commit 6c06f5ce93c55fe0f5779d5aeb68bec1bd935455)
Frank Praznik f836b465 2023-01-12T20:44:16 Revert "wayland: Don't try to restore non-resizable windows" This reverts commit e35c3872dc6a8f7741baba8b786b202cef7503ac. (cherry picked from commit 180afcdf3998e5175b744d3f2d87147802809450)
Frank Praznik a47a0451 2023-01-12T16:32:04 wayland: Don't try to restore non-resizable windows Libdecor can crash if attempting to un-maximize a window that was not set as resizable. (cherry picked from commit e35c3872dc6a8f7741baba8b786b202cef7503ac)
Frank Praznik e8ae1555 2023-01-12T15:36:35 wayland: Perform a round trip when maximizing and restoring windows Perform a round trip when maximizing and restoring windows so the changes have already taken effect when the associated functions return. (cherry picked from commit 50f2eb7d41fbba7c82630e55ead4ecf9c32f4c69)
Sam Lantinga 0479df53 2023-01-09T09:48:21 Updated copyright for 2023
Guldoman ad0d1e2a 2023-01-04T18:47:16 wayland: Fallback to default cursor if chosen one wasn't found (cherry picked from commit 5a4283134542d4bdb3d968a836387a750ce80517)
Sylvain 7bf4319e 2023-01-06T21:24:24 fix computation of alpha in BlitRGBtoRGBPixelAlphaMMX3DNOW (see #6990) ( same as BlitRGBtoRGBPixelAlphaMMX )
Sylvain 0ebda874 2023-01-06T13:27:53 Fixed bug #6990: fix computation of alpha in BlitRGBtoRGBPixelAlphaMMX
Sylvain 0a9f61fb 2023-01-03T16:35:51 Wayland / Drag and Drop: find the current window
Sylvain Becker d234f7a4 2023-01-02T18:09:57 SDL2: backport SDL_CalculateYUVSize() that checks for YUV size overflow (#6972)
João Henrique af54c821 2022-12-23T09:52:45 kmsdrm: Fix wrong check on KMSDRM_CreateWindow. A previous cleanup commit inverted a statement that checked the return value of a KMSDRM_CreateSurfaces call during KMSDRM_CreateWindow, which causes the video backend to always fail despite success. This commit restores the intended behavior. Fixes: 3c501b963dd8 ("Clang-Tidy fixes (#6725)"). (cherry picked from commit 0187209f461b84d22fc49a03369506e06448f47f)
Rudolf-Walter Kiss-Szakacs 232ed540 2022-12-02T07:22:31 Add SDL_HINT_WINDOWS_ENABLE_MENU_MNEMONICS.
Caleb Cornett c542aef6 2022-12-20T23:22:55 Fix GDK OpenGL build error
Caleb Cornett 3b3c141f 2022-12-19T17:38:44 gdk: Add support for building with OpenGL on Xbox
Sam Lantinga c7097418 2022-12-12T20:26:17 Detect display change when fullscreen desktop windows move displays This happens when using Win+Alt+Left/Right on a resizable fullscreen desktop window on Windows (cherry picked from commit 650e16a8245f3fb5056fc7f6b398fb88244b3477)
Frank Praznik dfd7efaf 2022-12-05T15:33:01 wayland: Set xdg surface geometry It was previously thought that these function calls were unnecessary as the initial bug and reproduction case that necessitated their addition seemed to be fixed, but apparently there are still cases where this needs to be set explicitly. Set the xdg surface geometry at creation time and when the window size changes. Partially reverts #6361. This is not needed in the libdecor path, as libdecor calls this for the content surface internally. (cherry picked from commit 90a964f132c63b07cf85e5687041d214fdea60f6)
Sam Lantinga ab479b49 2022-12-08T17:01:18 Make sure the display list is up to date for window placement
Sam Lantinga 264da8c1 2022-12-08T12:46:13 Added SDL_DISPLAYEVENT_MOVED to detect when display positioning changes
Sam Lantinga cfc7cac3 2022-12-08T12:43:23 Fixed memory leak when removing existing displays
Frank Praznik 8b74be46 2022-12-08T10:56:55 wayland: Handle the Num Lock and Caps Lock modifiers via modifier events Num Lock and Caps Lock always need to be explicitly handled by the modifier handler function, or they won't be correctly set if active at application startup, or if the lock state is changed while the application lacks focus since a key press for these keys will never be received. In these cases, the internal SDL modifier state can end up the inverse of the actual modifier state. (cherry picked from commit 653e484da17d773f40bff94121a23a3b38f47a0a)
Frank Praznik b5483f2c 2022-12-01T18:03:36 Fix formatting on Wayland and Pipewire function signatures Fixes the formatting on some function signatures that clang-format missed. (cherry picked from commit 378b1c286a9c3206e827a47f0147384e92c4c2b2)
Ozkan Sezer b990e914 2022-12-02T02:13:59 build fixes after d0bbfdbfb881e5407911d84c12899bd5b442a130