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

Unified Diff: ui/aura/window_tree_host_x11.cc

Issue 688253002: Implemented smooth scrolling using xinput2 in X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Applied sadrul's comments Created 6 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/aura/window_tree_host_x11.cc
diff --git a/ui/aura/window_tree_host_x11.cc b/ui/aura/window_tree_host_x11.cc
index 2ecc5a5987651ed4827dd6e2c9cd39d58301efb6..cf82290da9bc35d60cab8951031ff1d5f48fce8a 100644
--- a/ui/aura/window_tree_host_x11.cc
+++ b/ui/aura/window_tree_host_x11.cc
@@ -347,6 +347,11 @@ uint32_t WindowTreeHostX11::DispatchEvent(const ui::PlatformEvent& event) {
}
}
+ if (xev->type == EnterNotify || xev->type == LeaveNotify) {
+ // Clear stored scroll data
+ ui::DeviceDataManagerX11::GetInstance()->InvalidateScrollClasses();
+ }
sadrul 2015/01/30 15:49:15 Can you move this into X11EventSource::DispatchEve
+
if ((xev->type == EnterNotify || xev->type == LeaveNotify) &&
xev->xcrossing.detail == NotifyInferior) {
// Ignore EventNotify and LeaveNotify events from children of |xwindow_|.

Powered by Google App Engine
This is Rietveld 408576698