[gtk+/wip/carlosg/event-delivery-cleanups: 23/30] gdk: Remove array of event masks



commit b7c36c0041136e0510315737903cbe3963bb856f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Sep 15 17:41:49 2017 +0200

    gdk: Remove array of event masks
    
    This has been unused since all events are just forwarded instead of
    checking client-side windows evmasks.

 gdk/gdkwindow.c |   52 ----------------------------------------------------
 1 files changed, 0 insertions(+), 52 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 09d136c..2e8dcf4 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -5668,58 +5668,6 @@ gdk_window_get_support_multidevice (GdkWindow *window)
   return window->support_multidevice;
 }
 
-static const guint type_masks[] = {
-  GDK_SUBSTRUCTURE_MASK, /* GDK_DELETE                 = 0  */
-  GDK_STRUCTURE_MASK, /* GDK_DESTROY                   = 1  */
-  GDK_EXPOSURE_MASK, /* GDK_EXPOSE                     = 2  */
-  GDK_POINTER_MOTION_MASK, /* GDK_MOTION_NOTIFY        = 3  */
-  GDK_BUTTON_PRESS_MASK, /* GDK_BUTTON_PRESS           = 4  */
-  GDK_BUTTON_PRESS_MASK, /* GDK_2BUTTON_PRESS          = 5  */
-  GDK_BUTTON_PRESS_MASK, /* GDK_3BUTTON_PRESS          = 6  */
-  GDK_BUTTON_RELEASE_MASK, /* GDK_BUTTON_RELEASE       = 7  */
-  GDK_KEY_PRESS_MASK, /* GDK_KEY_PRESS                 = 8  */
-  GDK_KEY_RELEASE_MASK, /* GDK_KEY_RELEASE             = 9  */
-  GDK_ENTER_NOTIFY_MASK, /* GDK_ENTER_NOTIFY           = 10 */
-  GDK_LEAVE_NOTIFY_MASK, /* GDK_LEAVE_NOTIFY           = 11 */
-  GDK_FOCUS_CHANGE_MASK, /* GDK_FOCUS_CHANGE           = 12 */
-  GDK_STRUCTURE_MASK, /* GDK_CONFIGURE                 = 13 */
-  GDK_VISIBILITY_NOTIFY_MASK, /* GDK_MAP               = 14 */
-  GDK_VISIBILITY_NOTIFY_MASK, /* GDK_UNMAP             = 15 */
-  GDK_PROPERTY_CHANGE_MASK, /* GDK_PROPERTY_NOTIFY     = 16 */
-  GDK_PROPERTY_CHANGE_MASK, /* GDK_SELECTION_CLEAR     = 17 */
-  GDK_PROPERTY_CHANGE_MASK, /* GDK_SELECTION_REQUEST   = 18 */
-  GDK_PROPERTY_CHANGE_MASK, /* GDK_SELECTION_NOTIFY    = 19 */
-  GDK_PROXIMITY_IN_MASK, /* GDK_PROXIMITY_IN           = 20 */
-  GDK_PROXIMITY_OUT_MASK, /* GDK_PROXIMITY_OUT         = 21 */
-  GDK_ALL_EVENTS_MASK, /* GDK_DRAG_ENTER               = 22 */
-  GDK_ALL_EVENTS_MASK, /* GDK_DRAG_LEAVE               = 23 */
-  GDK_ALL_EVENTS_MASK, /* GDK_DRAG_MOTION              = 24 */
-  GDK_ALL_EVENTS_MASK, /* GDK_DRAG_STATUS              = 25 */
-  GDK_ALL_EVENTS_MASK, /* GDK_DROP_START               = 26 */
-  GDK_ALL_EVENTS_MASK, /* GDK_DROP_FINISHED            = 27 */
-  GDK_ALL_EVENTS_MASK, /* GDK_CLIENT_EVENT            = 28 */
-  GDK_VISIBILITY_NOTIFY_MASK, /* GDK_VISIBILITY_NOTIFY = 29 */
-  GDK_EXPOSURE_MASK, /* GDK_NO_EXPOSE                  = 30 */
-  GDK_SCROLL_MASK | GDK_SMOOTH_SCROLL_MASK,/* GDK_SCROLL= 31 */
-  0, /* GDK_WINDOW_STATE = 32 */
-  0, /* GDK_SETTING = 33 */
-  0, /* GDK_OWNER_CHANGE = 34 */
-  0, /* GDK_GRAB_BROKEN = 35 */
-  0, /* GDK_DAMAGE = 36 */
-  GDK_TOUCH_MASK, /* GDK_TOUCH_BEGIN = 37 */
-  GDK_TOUCH_MASK, /* GDK_TOUCH_UPDATE = 38 */
-  GDK_TOUCH_MASK, /* GDK_TOUCH_END = 39 */
-  GDK_TOUCH_MASK, /* GDK_TOUCH_CANCEL = 40 */
-  GDK_TOUCHPAD_GESTURE_MASK, /* GDK_TOUCHPAD_SWIPE = 41 */
-  GDK_TOUCHPAD_GESTURE_MASK, /* GDK_TOUCHPAD_PINCH = 42 */
-  GDK_TABLET_PAD_MASK, /* GDK_PAD_BUTTON_PRESS  = 43 */
-  GDK_TABLET_PAD_MASK, /* GDK_PAD_BUTTON_RELEASE = 44 */
-  GDK_TABLET_PAD_MASK, /* GDK_PAD_RING = 45 */
-  GDK_TABLET_PAD_MASK, /* GDK_PAD_STRIP = 46 */
-  GDK_TABLET_PAD_MASK, /* GDK_PAD_GROUP_MODE = 47 */
-};
-G_STATIC_ASSERT (G_N_ELEMENTS (type_masks) == GDK_EVENT_LAST);
-
 /* send motion events if the right buttons are down */
 
 static GdkWindow *


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