summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/widget/native_widget_aura.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/widget/native_widget_aura.cc b/views/widget/native_widget_aura.cc
index 19df758..ac3d781 100644
--- a/views/widget/native_widget_aura.cc
+++ b/views/widget/native_widget_aura.cc
@@ -534,13 +534,13 @@ bool NativeWidgetAura::ShouldActivate(aura::Event* event) {
void NativeWidgetAura::OnActivated() {
delegate_->OnNativeWidgetActivationChanged(true);
- if (IsVisible())
+ if (IsVisible() && GetWidget()->non_client_view())
GetWidget()->non_client_view()->SchedulePaint();
}
void NativeWidgetAura::OnLostActive() {
delegate_->OnNativeWidgetActivationChanged(false);
- if (IsVisible())
+ if (IsVisible() && GetWidget()->non_client_view())
GetWidget()->non_client_view()->SchedulePaint();
}