[gtk+/wip/carlosg/event-delivery-cleanups: 30/30] gdk: Remove remainings of fake crossing event delivery across touch



commit 26ae65adcf2ed7176f41e83ff30e47a51c30196a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Sep 15 19:50:01 2017 +0200

    gdk: Remove remainings of fake crossing event delivery across touch
    
    This was by all lights broken, and is basically an implementation detail
    of the X11 backend since the pointer emulating touch just steals the pointer
    cursor, so should be reimplemented there.

 gdk/gdkdisplay.c        |   11 -----------
 gdk/gdkdisplayprivate.h |    1 -
 2 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 4c9454f..6d45b07 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -787,17 +787,6 @@ switch_to_pointer_grab (GdkDisplay        *display,
 
       if (grab == NULL) /* Ungrabbed, send events */
        {
-          /* If the source device is a touch device, do not
-           * propagate any enter event yet, until one is
-           * synthesized when needed.
-           */
-          if (source_device &&
-              (gdk_device_get_source (source_device) == GDK_SOURCE_TOUCHSCREEN))
-            info->need_touch_press_enter = TRUE;
-
-          if (info->need_touch_press_enter)
-            new_toplevel = NULL;
-
          /* We're now ungrabbed, update the window_under_pointer */
          _gdk_display_set_window_under_pointer (display, device, new_toplevel);
        }
diff --git a/gdk/gdkdisplayprivate.h b/gdk/gdkdisplayprivate.h
index de280c4..a0d9dc2 100644
--- a/gdk/gdkdisplayprivate.h
+++ b/gdk/gdkdisplayprivate.h
@@ -68,7 +68,6 @@ typedef struct
   guint32 state;
   guint32 button;
   GdkDevice *last_slave;
-  guint need_touch_press_enter : 1;
 } GdkPointerWindowInfo;
 
 struct _GdkDisplay


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