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 054a982e2ad2e97b2e40e8a10f07e7b38aa181ad..b03b480f0f28af68f0eca4c429779e77c3194017 100644 |
--- a/ui/events/devices/x11/touch_factory_x11.cc |
+++ b/ui/events/devices/x11/touch_factory_x11.cc |
@@ -221,6 +221,10 @@ void TouchFactory::SetupXI2ForXWindow(Window window) { |
XISetMask(mask, XI_ButtonPress); |
XISetMask(mask, XI_ButtonRelease); |
XISetMask(mask, XI_Motion); |
+ // HierarchyChanged and DeviceChanged allow X11EventSource to still pick up |
+ // these events. |
+ XISetMask(mask, XI_HierarchyChanged); |
+ XISetMask(mask, XI_DeviceChanged); |
#if defined(OS_CHROMEOS) |
// XGrabKey() must be replaced with XI2 keyboard grab if XI2 key events are |
// enabled on desktop Linux. |