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_|. |