For the bug (it at least seems to me like one), see: https://bugzilla.libsdl.org/show_bug.cgi?id=2818
To reproduce it in qemu, try pressing ctrl-alt-2 five times (or whichever your key combination for showing/hiding the monitor window is). Normally, the window should be shown, hidden, shown, hidden and shown again. However, it will instead be shown, hidden, stay hidden, stay hidden and then be shown. This series fixes this. This series depends on Gerd's series "sdl2: fixes, cleanups and opengl preparation." Max Reitz (2): sdl2: Use correct sdl2_console for window events sdl2: Work around SDL2 SDL_ShowWindow() bug ui/sdl2.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) -- 1.9.3