qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] SDL: set a hint to not bypass the window compositor
@ 2018-10-24 14:37 Sebastian Krzyszkowiak
  2018-10-29  9:24 ` Gerd Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Krzyszkowiak @ 2018-10-24 14:37 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel, qemu-trivial, dos

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>
---
 ui/sdl2.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ui/sdl2.c b/ui/sdl2.c
index 2696b95c79..a10b6e3a08 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);
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] SDL: set a hint to not bypass the window compositor
  2018-10-24 14:37 [Qemu-devel] [PATCH] SDL: set a hint to not bypass the window compositor Sebastian Krzyszkowiak
@ 2018-10-29  9:24 ` Gerd Hoffmann
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2018-10-29  9:24 UTC (permalink / raw)
  To: Sebastian Krzyszkowiak; +Cc: qemu-devel, qemu-trivial

On Wed, Oct 24, 2018 at 04:37:48PM +0200, Sebastian Krzyszkowiak wrote:
> 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>

Added to UI patch queue.

thanks,
  Gerd

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-29  9:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-24 14:37 [Qemu-devel] [PATCH] SDL: set a hint to not bypass the window compositor Sebastian Krzyszkowiak
2018-10-29  9:24 ` Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).