[mutter] ui: Remove device events from X11 mask



commit 6d72b7c017ca1537d28be3eeb765e9b9017a19c3
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Mar 12 13:00:24 2015 -0700

    ui: Remove device events from X11 mask
    
    These interfere with our touch handling.

 src/ui/ui.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/ui/ui.c b/src/ui/ui.c
index bebf687..b0f04d0 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -166,13 +166,7 @@ meta_ui_create_frame (MetaUI *ui,
 
   attrs.title = NULL;
 
-  /* frame.c is going to replace the event mask immediately, but
-   * we still have to set it here to let GDK know what it is.
-   */
-  attrs.event_mask =
-    GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
-    GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK |
-    GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_FOCUS_CHANGE_MASK;
+  attrs.event_mask = GDK_EXPOSURE_MASK;
   attrs.x = x;
   attrs.y = y;
   attrs.wclass = GDK_INPUT_OUTPUT;


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