| Index: ash/common/shelf/shelf_window_watcher.cc
|
| diff --git a/ash/common/shelf/shelf_window_watcher.cc b/ash/common/shelf/shelf_window_watcher.cc
|
| index 92bfe9a1cfca22879a5b236302fc4d7625c4b445..b4087c29f599ce7722de355cdd2e80497d0e747b 100644
|
| --- a/ash/common/shelf/shelf_window_watcher.cc
|
| +++ b/ash/common/shelf/shelf_window_watcher.cc
|
| @@ -100,6 +100,11 @@ void ShelfWindowWatcher::UserWindowObserver::OnWindowDestroying(
|
| void ShelfWindowWatcher::UserWindowObserver::OnWindowVisibilityChanged(
|
| WmWindow* window,
|
| bool visible) {
|
| + // OnWindowVisibilityChanged() is called for descendants too. We only care
|
| + // about changes to the visibility of windows we know about.
|
| + if (!window_watcher_->observed_user_windows_.IsObserving(window))
|
| + return;
|
| +
|
| // The tooltip behavior for panel windows depends on the panel visibility.
|
| window_watcher_->OnUserWindowPropertyChanged(window);
|
| }
|
|
|