mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
sdl: Never release input while in full screen mode
It's confusing to suddenly find two mice in full screen mode when switching consoles or accidentally hitting the grab hot keys. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
f85581004c
commit
f623d88548
1 changed files with 4 additions and 3 deletions
7
ui/sdl.c
7
ui/sdl.c
|
@ -626,9 +626,10 @@ static void sdl_refresh(DisplayState *ds)
|
|||
reset_keys();
|
||||
console_select(keycode - 0x02);
|
||||
if (!is_graphic_console()) {
|
||||
/* display grab if going to a text console */
|
||||
if (gui_grab)
|
||||
/* release grab if going to a text console */
|
||||
if (gui_grab && !gui_fullscreen) {
|
||||
sdl_grab_end();
|
||||
}
|
||||
}
|
||||
gui_keysym = 1;
|
||||
break;
|
||||
|
@ -694,7 +695,7 @@ static void sdl_refresh(DisplayState *ds)
|
|||
SDL_GetAppState() & SDL_APPACTIVE) {
|
||||
sdl_grab_start();
|
||||
}
|
||||
} else {
|
||||
} else if (!gui_fullscreen) {
|
||||
sdl_grab_end();
|
||||
}
|
||||
/* SDL does not send back all the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue