]> Pileus Git - ~andy/gtk/commitdiff
Don't query the position of keyboards
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Dec 2010 23:39:59 +0000 (18:39 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Dec 2010 23:41:24 +0000 (18:41 -0500)
Turns out that this causes X errors with the XI2 implementation.

gtk/gtkaboutdialog.c

index 4844ed792d6e5b017589e700582b4dd92a5a9cd6..b72676d1ba9c93543ce1184a3bd08360f0aef8dc 100644 (file)
@@ -2045,6 +2045,9 @@ text_view_visibility_notify_event (GtkWidget          *text_view,
     {
       GdkDevice *dev = d->data;
 
+      if (gdk_device_get_source (dev) == GDK_SOURCE_KEYBOARD)
+        continue;
+
       gdk_window_get_device_position (gtk_widget_get_window (text_view), dev,
                                       &wx, &wy, NULL);