Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: views/widget/widget.cc

Issue 8386064: Fixes painting regression. The problem was I optimized to only send to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/compositor/layer_animator.h ('k') | views/window/non_client_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget.cc
diff --git a/views/widget/widget.cc b/views/widget/widget.cc
index 5b305c41736450597877828f416eae51a82b78e9..029b92025cc87ea3ba31e3d4d58e2c365c1388ec 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);
« no previous file with comments | « ui/gfx/compositor/layer_animator.h ('k') | views/window/non_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698