mirror of https://gitlab.com/qemu-project/qemu
sdl: Don't release input on mouse mode change in full-screen mode
While in full-screen mode, the input focus naturally belongs to the SDL window. Avoid dropping it when switching from absolute to relative mouse mode. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
fa7d186757
commit
f8b8d633f6
2
ui/sdl.c
2
ui/sdl.c
|
@ -491,7 +491,9 @@ static void sdl_mouse_mode_change(Notifier *notify, void *data)
|
||||||
absolute_enabled = 1;
|
absolute_enabled = 1;
|
||||||
}
|
}
|
||||||
} else if (absolute_enabled) {
|
} else if (absolute_enabled) {
|
||||||
|
if (!gui_fullscreen) {
|
||||||
sdl_grab_end();
|
sdl_grab_end();
|
||||||
|
}
|
||||||
absolute_enabled = 0;
|
absolute_enabled = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue