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

Unified Diff: ui/views/widget/native_widget_win.cc

Issue 11567011: Conditionally call SchedulePaint() when activating and deactivating inactive rendering (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « no previous file | ui/views/widget/widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_win.cc
diff --git a/ui/views/widget/native_widget_win.cc b/ui/views/widget/native_widget_win.cc
index d5dbf0657e8a3baac814deb61b019de2a103ade4..76948cb43fab6ef3a5a5001122aa91c3dd284971 100644
--- a/ui/views/widget/native_widget_win.cc
+++ b/ui/views/widget/native_widget_win.cc
@@ -634,9 +634,14 @@ gfx::NativeViewAccessible NativeWidgetWin::GetNativeViewAccessible() {
}
void NativeWidgetWin::HandleAppDeactivated() {
- // Another application was activated, we should reset any state that
- // disables inactive rendering now.
- delegate_->EnableInactiveRendering();
+ if (IsInactiveRenderingDisabled()) {
+ delegate_->EnableInactiveRendering();
+ } else {
+ // TODO(pkotwicz): Remove need for SchedulePaint(). crbug.com/165841
+ View* non_client_view = GetWidget()->non_client_view();
+ if (non_client_view)
+ non_client_view->SchedulePaint();
+ }
}
void NativeWidgetWin::HandleActivationChanged(bool active) {
« no previous file with comments | « no previous file | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698