Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
index f5465bfae82b59ee9726b3143246ded949a02817..f507233482ce59e56c95cb4087ff36a787630934 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
@@ -1530,6 +1530,13 @@ uint32_t DesktopWindowTreeHostX11::DispatchEvent( |
switch (xev->type) { |
case EnterNotify: |
case LeaveNotify: { |
+ // Ignore EventNotify and LeaveNotify events from children of |xwindow_|. |
+ // NativeViewGLSurfaceGLX adds a child to |xwindow_|. |
+ // TODO(pkotwicz|tdanderson): Figure out whether the suppression is |
+ // necessary. crbug.com/385716 |
+ if (xev->xcrossing.detail == NotifyInferior) |
+ break; |
+ |
ui::MouseEvent mouse_event(xev); |
DispatchMouseEvent(&mouse_event); |
break; |