projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19ab17d
)
sdl: Don't release input on mouse mode change in full-screen mode
author
Jan Kiszka
<jan.kiszka@siemens.com>
Mon, 22 Aug 2011 16:42:42 +0000
(18:42 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 22 Aug 2011 19:37:04 +0000
(14:37 -0500)
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>
ui/sdl.c
patch
|
blob
|
history
diff --git
a/ui/sdl.c
b/ui/sdl.c
index
385cc91
..
c7aaedf
100644
(file)
--- a/
ui/sdl.c
+++ b/
ui/sdl.c
@@
-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;
}
}