| Index: ui/aura/window_tree_host_ozone.cc
|
| diff --git a/ui/aura/window_tree_host_ozone.cc b/ui/aura/window_tree_host_ozone.cc
|
| index 44514d0b08a65c42c5b6f44689dfc98621bfc960..3017a21b806167f85fe8f5e5361b6feeb7092ae6 100644
|
| --- a/ui/aura/window_tree_host_ozone.cc
|
| +++ b/ui/aura/window_tree_host_ozone.cc
|
| @@ -40,8 +40,9 @@ WindowTreeHostOzone::~WindowTreeHostOzone() {
|
| bool WindowTreeHostOzone::CanDispatchEvent(const ui::PlatformEvent& ne) {
|
| CHECK(ne);
|
| ui::Event* event = static_cast<ui::Event*>(ne);
|
| - if (event->IsMouseEvent() || event->IsScrollEvent() || event->IsTouchEvent())
|
| - return bounds_.Contains(static_cast<ui::LocatedEvent*>(event)->location());
|
| + if (event->IsMouseEvent() || event->IsScrollEvent())
|
| + return ui::CursorFactoryOzone::GetInstance()->GetActiveWindow() == widget_;
|
| +
|
| return true;
|
| }
|
|
|
|
|