mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
sdl: Fix termination in -no-shutdown mode
Just like the monitor does, we need to clear no_shutdown before calling qemu_system_shutdown_request on quit requests. Otherwise, QEMU just stops the VM. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
257a737558
commit
941f511a26
1 changed files with 3 additions and 1 deletions
4
ui/sdl.c
4
ui/sdl.c
|
@ -672,8 +672,10 @@ static void sdl_refresh(DisplayState *ds)
|
|||
sdl_process_key(&ev->key);
|
||||
break;
|
||||
case SDL_QUIT:
|
||||
if (!no_quit)
|
||||
if (!no_quit) {
|
||||
no_shutdown = 0;
|
||||
qemu_system_shutdown_request();
|
||||
}
|
||||
break;
|
||||
case SDL_MOUSEMOTION:
|
||||
if (gui_grab || kbd_mouse_is_absolute() ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue