From: Matthias Clasen Date: Fri, 17 Dec 2010 23:39:59 +0000 (-0500) Subject: Don't query the position of keyboards X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=453bf477ed3088fd9d3310e070d0248b84821d21;p=~andy%2Fgtk Don't query the position of keyboards Turns out that this causes X errors with the XI2 implementation. --- diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 4844ed792..b72676d1b 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -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);