projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c638e2
)
gtk: skip keyboard grab when hover autograb is active
author
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 6 May 2014 09:04:57 +0000
(11:04 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 26 May 2014 06:41:03 +0000
(08:41 +0200)
It's pointless. With grab on hover enabled the keyboard grab
is already active when you press Ctrl-Alt-G ;)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk.c
patch
|
blob
|
history
diff --git
a/ui/gtk.c
b/ui/gtk.c
index d87bd1bfebcf32e207bab58c150304f830ae9170..f8048138fed105fbfb2f39dd99af231425bd4399 100644
(file)
--- a/
ui/gtk.c
+++ b/
ui/gtk.c
@@
-1183,7
+1183,9
@@
static void gd_menu_grab_input(GtkMenuItem *item, void *opaque)
VirtualConsole *vc = gd_vc_find_current(s);
if (gd_is_grab_active(s)) {
- gd_grab_keyboard(vc);
+ if (!gd_grab_on_hover(s)) {
+ gd_grab_keyboard(vc);
+ }
gd_grab_pointer(vc);
} else {
gd_ungrab_keyboard(s);