qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 15/22] gtk: skip keyboard grab when hover autograb i


From: Gerd Hoffmann
Subject: [Qemu-devel] [PATCH 15/22] gtk: skip keyboard grab when hover autograb is active
Date: Tue, 6 May 2014 14:05:51 +0200

Signed-off-by: Gerd Hoffmann <address@hidden>
---
 ui/gtk.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ui/gtk.c b/ui/gtk.c
index 02e4685..a00635a 100644
--- 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);
-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]