| 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) {
|
|
|