qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] no mouse events with gtk,gl=on


From: Rob Herring
Subject: [Qemu-devel] no mouse events with gtk,gl=on
Date: Fri, 29 Jul 2016 12:21:37 -0500

I'm running current master of QEMU using virgl and display backend
"gtk,gl=on". I get no guest mouse events unless I force CONFIG_GTK_GL
off or make the following patch. Key events work fine. I'm on ubuntu
16.04 with GTK 3.18 (ubuntu 15.10/GTK 3.16 also had the same issue).
I've had this problem for some time, but just getting around to trying
to debug it further.

@@ -1373,8 +1378,8 @@ static void gd_grab_devices(VirtualConsole *vc, bool grab,
         }
         if (grab) {
             GdkWindow *win = gtk_widget_get_window(vc->gfx.drawing_area);
-            gdk_device_grab(dev, win, GDK_OWNERSHIP_NONE, FALSE,
-                            mask, cursor, GDK_CURRENT_TIME);
+            gdk_device_grab(dev, win, GDK_OWNERSHIP_NONE, TRUE,
+                            0, cursor, GDK_CURRENT_TIME);
         } else {
             gdk_device_ungrab(dev, GDK_CURRENT_TIME);
         }

Any ideas or suggestions how to debug this further?

Rob



reply via email to

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