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

Unified Diff: ui/events/platform/x11/x11_event_source.cc

Issue 688253002: Implemented smooth scrolling using xinput2 in X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 7 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/platform/x11/x11_event_source.cc
diff --git a/ui/events/platform/x11/x11_event_source.cc b/ui/events/platform/x11/x11_event_source.cc
index 5101f2703a3bff44f677e1c64db1a2ec09532980..715795cd2e04179551a1408c240e10daec406044 100644
--- a/ui/events/platform/x11/x11_event_source.cc
+++ b/ui/events/platform/x11/x11_event_source.cc
@@ -134,6 +134,12 @@ uint32_t X11EventSource::DispatchEvent(XEvent* xevent) {
hotplug_event_handler_->OnHotplugEvent();
}
+ if ((xevent->type == EnterNotify || xevent->type == LeaveNotify) &&
+ xevent->xcrossing.mode == NotifyNormal) {
+ // Clear stored scroll data
+ ui::DeviceDataManagerX11::GetInstance()->InvalidateScrollClasses();
+ }
+
if (have_cookie)
XFreeEventData(xevent->xgeneric.display, &xevent->xcookie);
return action;

Powered by Google App Engine
This is Rietveld 408576698