summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-06-28 18:33:51 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2013-07-15 12:47:46 -0400
commit3b51405255463982edd9482ef91c739e520d4434 (patch)
tree8c085d8df8f4572d68d9b26200e524ee8f6bc162
parent73dbb4b9a52c651868057590e71616e8a5b726b2 (diff)
downloadmutter-3b51405255463982edd9482ef91c739e520d4434.tar.gz
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
-rw-r--r--src/compositor/compositor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index 21fbcc64f..89235e641 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -660,6 +660,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;