Index: ui/events/devices/x11/touch_factory_x11.cc |
diff --git a/ui/events/devices/x11/touch_factory_x11.cc b/ui/events/devices/x11/touch_factory_x11.cc |
index f242bf6d7a5c547b75e1a4473edc09601ed28f6f..37dba7ceb85a92982fc6c26a26de3ccfe603718d 100644 |
--- a/ui/events/devices/x11/touch_factory_x11.cc |
+++ b/ui/events/devices/x11/touch_factory_x11.cc |
@@ -213,6 +213,11 @@ void TouchFactory::SetupXI2ForXWindow(Window window) { |
unsigned char mask[XIMaskLen(XI_LASTEVENT)]; |
memset(mask, 0, sizeof(mask)); |
+ XISetMask(mask, XI_Enter); |
+ XISetMask(mask, XI_Leave); |
+ XISetMask(mask, XI_FocusIn); |
+ XISetMask(mask, XI_FocusOut); |
+ |
XISetMask(mask, XI_TouchBegin); |
XISetMask(mask, XI_TouchUpdate); |
XISetMask(mask, XI_TouchEnd); |