diff options
Diffstat (limited to 'ash')
-rw-r--r-- | ash/display/display_controller_unittest.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ash/display/display_controller_unittest.cc b/ash/display/display_controller_unittest.cc index 84017ce..79be192 100644 --- a/ash/display/display_controller_unittest.cc +++ b/ash/display/display_controller_unittest.cc @@ -119,8 +119,11 @@ class TestEventHandler : public ui::EventHandler { virtual ~TestEventHandler() {} virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE { - if (event->flags() & ui::EF_IS_SYNTHESIZED) + if (event->flags() & ui::EF_IS_SYNTHESIZED && + event->type() != ui::ET_MOUSE_EXITED && + event->type() != ui::ET_MOUSE_ENTERED) { return; + } aura::Window* target = static_cast<aura::Window*>(event->target()); mouse_location_ = event->root_location(); target_root_ = target->GetRootWindow(); |