Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Unified Diff: ui/events/devices/x11/touch_factory_x11.cc

Issue 688253002: Implemented smooth scrolling using xinput2 in X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed device hotplugging, initialised variable Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 6718550a9614f958d327c8439d362ed4de7cbfc4..9c11d30a045285cb434f5cff0e27a34bcdb2e5ba 100644
--- a/ui/events/devices/x11/touch_factory_x11.cc
+++ b/ui/events/devices/x11/touch_factory_x11.cc
@@ -223,6 +223,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.

Powered by Google App Engine
This is Rietveld 408576698