| Index: views/widget/widget.cc
|
| diff --git a/views/widget/widget.cc b/views/widget/widget.cc
|
| index 9ce902a5d0dabdd83ad21fbe1a0701f8dcb642b2..8baf11c383d8c0a8c3dae552904402a0dc15f56c 100644
|
| --- a/views/widget/widget.cc
|
| +++ b/views/widget/widget.cc
|
| @@ -870,9 +870,12 @@ void Widget::OnNativeBlur(gfx::NativeView focused_view) {
|
| }
|
|
|
| void Widget::OnNativeWidgetVisibilityChanged(bool visible) {
|
| - GetRootView()->PropagateVisibilityNotifications(GetRootView(), visible);
|
| + View* root = GetRootView();
|
| + root->PropagateVisibilityNotifications(root, visible);
|
| FOR_EACH_OBSERVER(Observer, observers_,
|
| OnWidgetVisibilityChanged(this, visible));
|
| + if (GetCompositor() && root->layer())
|
| + root->layer()->SetVisible(visible);
|
| }
|
|
|
| void Widget::OnNativeWidgetCreated() {
|
|
|