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 e6429493f26db6a9a4c9cfc65fd0404a465b738f..3c7301fc592185251c51b647194846b14c99c59f 100644 |
--- a/ui/events/platform/x11/x11_event_source.cc |
+++ b/ui/events/platform/x11/x11_event_source.cc |
@@ -139,6 +139,13 @@ uint32_t X11EventSource::DispatchEvent(XEvent* xevent) { |
ui::UpdateDeviceList(); |
hotplug_event_handler_->OnHotplugEvent(); |
} |
+ |
+ if (xevent->type == EnterNotify && |
+ xevent->xcrossing.detail != NotifyInferior && |
+ xevent->xcrossing.mode != NotifyUngrab) { |
+ // Clear stored scroll data |
+ ui::DeviceDataManagerX11::GetInstance()->InvalidateScrollClasses(); |
+ } |
return action; |
} |