From: Sebastian Krzyszkowiak Date: Wed, 24 Oct 2018 14:37:48 +0000 (+0200) Subject: SDL: set a hint to not bypass the window compositor X-Git-Tag: v3.1.0-rc0~27^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c2b816fc5bf9d30138ac068d1665e473c7cb4bf;p=thirdparty%2Fqemu.git SDL: set a hint to not bypass the window compositor 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 Message-id: 20181024143748.4425-1-dos@dosowisko.net Signed-off-by: Gerd Hoffmann --- diff --git a/ui/sdl2.c b/ui/sdl2.c index 2696b95c79a..a10b6e3a08c 100644 --- 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);