| Index: services/ui/ws/window_finder.cc
|
| diff --git a/services/ui/ws/window_finder.cc b/services/ui/ws/window_finder.cc
|
| index 09be99308ce1fe50dcfc4282af6331da7f931549..d013086f21501650a27115cdc4e968a0b43891e0 100644
|
| --- a/services/ui/ws/window_finder.cc
|
| +++ b/services/ui/ws/window_finder.cc
|
| @@ -26,11 +26,17 @@ bool IsValidWindowForEvents(ServerWindow* window) {
|
|
|
| ServerWindow* FindDeepestVisibleWindowForEvents(ServerWindow* window,
|
| gfx::Point* location) {
|
| + if (!window->can_accept_events())
|
| + return nullptr;
|
| +
|
| const ServerWindow::Windows& children = window->children();
|
| for (ServerWindow* child : base::Reversed(children)) {
|
| if (!child->visible())
|
| continue;
|
|
|
| + if (!child->can_accept_events())
|
| + continue;
|
| +
|
| // TODO(sky): support transform.
|
| gfx::Point child_location(location->x() - child->bounds().x(),
|
| location->y() - child->bounds().y());
|
|
|