Alberto Garcia 08d49df0db sdl2: fix crash in handle_windowevent() when restoring the screen size
The Ctrl-Alt-u keyboard shortcut restores the screen to its original
size. In the SDL2 UI this is done by destroying the window and
creating a new one. The old window emits SDL_WINDOWEVENT_HIDDEN when
it's destroyed, but trying to call SDL_GetWindowFromID() from that
event's window ID returns a null pointer. handle_windowevent() assumes
that the pointer is never null so it results in a crash.

Cc: qemu-stable@nongnu.org
Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2015-06-09 10:25:21 +02:00
..
2012-12-19 08:31:31 +01:00
2012-12-19 08:31:30 +01:00
2015-03-10 08:15:33 +03:00
2015-03-10 08:15:33 +03:00
2015-05-29 11:11:38 +02:00
2015-05-29 11:43:29 +02:00
2015-05-29 11:43:29 +02:00
2010-07-26 17:35:54 -05:00
2015-05-05 10:48:26 +02:00
2014-09-16 08:07:05 +02:00
2010-07-26 17:35:54 -05:00
2010-07-26 17:36:14 -05:00
2015-05-20 10:23:08 +02:00