From 453bf477ed3088fd9d3310e070d0248b84821d21 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 17 Dec 2010 18:39:59 -0500 Subject: [PATCH] Don't query the position of keyboards Turns out that this causes X errors with the XI2 implementation. --- gtk/gtkaboutdialog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 4844ed792d..b72676d1ba 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);