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; |