diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-08-22 18:42:42 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-22 14:37:04 -0500 |
commit | f8b8d633f68ac97b7d3e5d6cecbbac96769f0cfb (patch) | |
tree | 60d1b10bf2a98442da4df073110314883fbb33e9 /ui | |
parent | fa7d1867578b6a1afc39d4ece8629a1e92baddd7 (diff) | |
download | qemu-f8b8d633f68ac97b7d3e5d6cecbbac96769f0cfb.tar.gz qemu-f8b8d633f68ac97b7d3e5d6cecbbac96769f0cfb.tar.bz2 qemu-f8b8d633f68ac97b7d3e5d6cecbbac96769f0cfb.zip |
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/sdl.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -491,7 +491,9 @@ static void sdl_mouse_mode_change(Notifier *notify, void *data) absolute_enabled = 1; } } else if (absolute_enabled) { - sdl_grab_end(); + if (!gui_fullscreen) { + sdl_grab_end(); + } absolute_enabled = 0; } } |