[mutter/gnome-3-8] main: Don't select for touch events on the stage



commit e36eb3e91a14cd64c7855d9ca0b7d81acaae3aff
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Jun 28 18:33:51 2013 -0400

    main: Don't select for touch events on the stage
    
    GNOME Shell's actors aren't touch capable, so we need to make sure that
    they get the fallback pointer emulated events for now. This fixes the top
    bar and other elements not working on a touchscreen without a grab.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697192

 src/compositor/compositor.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index 642b651..91b477f 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -639,6 +639,9 @@ meta_compositor_manage_screen (MetaCompositor *compositor,
     XISetMask (mask.mask, XI_FocusIn);
     XISetMask (mask.mask, XI_FocusOut);
     XISetMask (mask.mask, XI_Motion);
+    XIClearMask (mask.mask, XI_TouchBegin);
+    XIClearMask (mask.mask, XI_TouchEnd);
+    XIClearMask (mask.mask, XI_TouchUpdate);
     XISelectEvents (xdisplay, xwin, &mask, 1);
 
     event_mask = ExposureMask | PropertyChangeMask | StructureNotifyMask;


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