summaryrefslogtreecommitdiffstats
path: root/views/widget/widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/widget.cc')
-rw-r--r--views/widget/widget.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/widget/widget.cc b/views/widget/widget.cc
index 5b305c4..029b920 100644
--- a/views/widget/widget.cc
+++ b/views/widget/widget.cc
@@ -1110,10 +1110,10 @@ bool Widget::ShouldReleaseCaptureOnMouseReleased() const {
}
void Widget::SetInactiveRenderingDisabled(bool value) {
- if (value == disable_inactive_rendering_)
- return;
-
disable_inactive_rendering_ = value;
+ // We need to always notify the NonClientView so that it can trigger a paint.
+ // TODO: what's really needed is a way to know when either the active state
+ // changes or |disable_inactive_rendering_| changes.
if (non_client_view_)
non_client_view_->SetInactiveRenderingDisabled(value);
native_widget_->SetInactiveRenderingDisabled(value);