| 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..9c00e1478e07d6c3ec0dcc46c48cfd10066f69cb 100644
|
| --- a/ui/aura/window_tree_host_ozone.cc
|
| +++ b/ui/aura/window_tree_host_ozone.cc
|
| @@ -40,9 +40,10 @@ 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());
|
| - return true;
|
| + if (!event->window() || event->window() == widget_)
|
| + return true;
|
| +
|
| + return false;
|
| }
|
|
|
| uint32_t WindowTreeHostOzone::DispatchEvent(const ui::PlatformEvent& ne) {
|
|
|