| Index: ui/aura/root_window_host_x11.cc
|
| diff --git a/ui/aura/root_window_host_x11.cc b/ui/aura/root_window_host_x11.cc
|
| index 0d00318f2a31b70b8fa0cb798da9ac72166c1680..ad1b957d7b5f4c70b832b60c3b3e15d3394f695b 100644
|
| --- a/ui/aura/root_window_host_x11.cc
|
| +++ b/ui/aura/root_window_host_x11.cc
|
| @@ -458,7 +458,14 @@ bool RootWindowHostX11::Dispatch(const base::NativeEvent& event) {
|
| return DispatchEventForRootWindow(event);
|
|
|
| switch (xev->type) {
|
| - case EnterNotify:
|
| + case EnterNotify: {
|
| + ui::MouseEvent mouse_event(xev);
|
| + // EnterNotify creates ET_MOUSE_MOVE. Mark as synthesized as this is not
|
| + // real mouse move event.
|
| + mouse_event.set_flags(mouse_event.flags() | ui::EF_IS_SYNTHESIZED);
|
| + TranslateAndDispatchMouseEvent(&mouse_event);
|
| + break;
|
| + }
|
| case LeaveNotify: {
|
| ui::MouseEvent mouse_event(xev);
|
| TranslateAndDispatchMouseEvent(&mouse_event);
|
|
|