Hi, I had to apply the attached patch to make the SDL2 UI of any use - the vanilla version (both Debian Sid package and qemu git master) stops updating after the window is obscured, minimized, or after a virtual desktop switch.
It partially reverts the following hack: commit d3f3a0f453ea590be529079ae214c200bb5ecc1a Author: Max Reitz <[email protected]> Date: Fri Dec 12 10:52:52 2014 +0100 sdl2: Work around SDL2 SDL_ShowWindow() bug Regards, -- Jindřich Makovička
From cefe274a1877565efcca9ccaa943d43a93e3bbef Mon Sep 17 00:00:00 2001 From: Jindrich Makovicka <[email protected]> Date: Sat, 14 Oct 2017 11:27:50 +0200 Subject: [PATCH] sdl2: Fix broken display updating after the window is hidden With SDL 2.0.6, calling SDL_ShowWindow during SDL_WINDOWEVENT_HIDDEN blocks all subsequent display updates. --- ui/sdl2.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index 53dd447fd2..7f51933234 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -576,11 +576,6 @@ static void handle_windowevent(SDL_Event *ev) SDL_HideWindow(scon->real_window); } break; - case SDL_WINDOWEVENT_HIDDEN: - if (!scon->hidden) { - SDL_ShowWindow(scon->real_window); - } - break; } } -- 2.15.0.rc0

