Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: ui/events/devices/x11/

Issue 688253002: Implemented smooth scrolling using xinput2 in X11. (Closed) Base URL:
Patch Set: Applied @msw's comments - renamed amount to remainder Created 4 years, 11 months 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/
diff --git a/ui/events/devices/x11/ b/ui/events/devices/x11/
index 054a982e2ad2e97b2e40e8a10f07e7b38aa181ad..b03b480f0f28af68f0eca4c429779e77c3194017 100644
--- a/ui/events/devices/x11/
+++ b/ui/events/devices/x11/
@@ -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.

Powered by Google App Engine
This is Rietveld 408576698