[gtk+/touch-for-3.4] gtk: Use 'emulating pointer' information when falling back



commit 9040388b18426fd078974ca2b9c114e0878f4641
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 29 01:23:26 2012 -0500

    gtk: Use 'emulating pointer' information when falling back
    
    We don't want to fallback for 'random' touch sequences, since
    that could lead to all kinds of pairedness and other violations.
    Since the X server already tells us what touch events it would
    have used for emulating pointer events, we just use that information
    here.

 gtk/gtkwidget.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index a62396c..53277c4 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5854,9 +5854,9 @@ gtk_widget_real_touch_event (GtkWidget     *widget,
   gboolean return_val;
   gint signum;
 
-  /* FIXME: we may need to remember the touch sequence and
-   * ignore other touches until the first sequence ends
-   */
+  if (!event->emulating_pointer)
+    return FALSE;
+
   if (event->type == GDK_TOUCH_BEGIN ||
       event->type == GDK_TOUCH_END)
     {



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