]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
SDL: set a hint to not bypass the window compositor
authorSebastian Krzyszkowiak <dos@dosowisko.net>
Wed, 24 Oct 2018 14:37:48 +0000 (16:37 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 29 Oct 2018 13:38:17 +0000 (14:38 +0100)
Without that, window effects in KWin get suspended as soon as any
qemu-sdl window becomes visible. While the SDL default makes sense
for games, it's not really suitable for QEMU.

Signed-off-by: Sebastian Krzyszkowiak <dos@dosowisko.net>
Message-id: 20181024143748.4425-1-dos@dosowisko.net
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/sdl2.c

index 2696b95c79a82a9b65b2652cb3f5f115750b3230..a10b6e3a08ca71a4a2701a44f0268711b415890c 100644 (file)
--- a/ui/sdl2.c
+++ b/ui/sdl2.c
@@ -786,6 +786,9 @@ static void sdl2_display_init(DisplayState *ds, DisplayOptions *o)
                 SDL_GetError());
         exit(1);
     }
+#ifdef SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR /* only available since SDL 2.0.8 */
+    SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
+#endif
     SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, "1");
     memset(&info, 0, sizeof(info));
     SDL_VERSION(&info.version);