Index: ui/aura/window.cc |
diff --git a/ui/aura/window.cc b/ui/aura/window.cc |
index d1caa0416e6eab3ea3e35464644793eef6d29341..ce1206bf9f1d96b2a5a34214c345e0d210c7be82 100644 |
--- a/ui/aura/window.cc |
+++ b/ui/aura/window.cc |
@@ -30,7 +30,8 @@ Window::Window(WindowDelegate* delegate) |
transient_parent_(NULL), |
id_(-1), |
user_data_(NULL), |
- stops_event_propagation_(false) { |
+ stops_event_propagation_(false), |
+ ignore_events_(false) { |
} |
Window::~Window() { |
@@ -472,7 +473,7 @@ Window* Window::GetWindowForPoint(const gfx::Point& local_point, |
for (Windows::const_reverse_iterator it = children_.rbegin(); |
it != children_.rend(); ++it) { |
Window* child = *it; |
- if (!child->IsVisible()) |
+ if (!child->IsVisible() || (for_event_handling && child->ignore_events_)) |
continue; |
gfx::Point point_in_child_coords(local_point); |