[gtk+] Don't query the position of keyboards



commit 453bf477ed3088fd9d3310e070d0248b84821d21
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 17 18:39:59 2010 -0500

    Don't query the position of keyboards
    
    Turns out that this causes X errors with the XI2 implementation.

 gtk/gtkaboutdialog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index 4844ed7..b72676d 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);
 



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