aboutsummaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index e65dcac9c5..b58e9d6794 100644
--- a/sdl.c
+++ b/sdl.c
@@ -496,7 +496,9 @@ static void sdl_refresh(DisplayState *ds)
sdl_process_key(&ev->key);
break;
case SDL_QUIT:
- qemu_system_shutdown_request();
+ if (!no_quit) {
+ qemu_system_shutdown_request();
+ }
break;
case SDL_MOUSEMOTION:
if (gui_grab || kbd_mouse_is_absolute()) {