diff options
author | Sebastian Krzyszkowiak <dos@dosowisko.net> | 2018-10-24 16:37:48 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-10-29 14:38:17 +0100 |
commit | 8c2b816fc5bf9d30138ac068d1665e473c7cb4bf (patch) | |
tree | 75b0888119fdd87e2852379a9f5e701503e719a9 | |
parent | 285278ca785f5fa9a570927e1c0958a2ca2b2150 (diff) | |
download | qemu-8c2b816fc5bf9d30138ac068d1665e473c7cb4bf.zip qemu-8c2b816fc5bf9d30138ac068d1665e473c7cb4bf.tar.gz qemu-8c2b816fc5bf9d30138ac068d1665e473c7cb4bf.tar.bz2 |
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 <dos@dosowisko.net>
Message-id: 20181024143748.4425-1-dos@dosowisko.net
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | ui/sdl2.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |