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