| Index: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
|
| diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
|
| index ee83e2682ca2b02e3a0f1dbec66282e1fef629c0..159ffc1080e2b2f8d6731c1e797c0ec1402bd650 100644
|
| --- a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
|
| +++ b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
|
| @@ -390,14 +390,9 @@ void DesktopRootWindowHostWin::OnNativeWidgetBlur() {
|
|
|
| void DesktopRootWindowHostWin::SetInactiveRenderingDisabled(
|
| bool disable_inactive) {
|
| - // We call DefWindowProc of WM_NCACTIVATE to paint the caption as active or
|
| - // inactive. This is safe with the only sideeffect being the
|
| - // WM_GETTEXT message which is sent by DefWindowProc to get the text to be
|
| - // displayed on the caption.
|
| - ::DefWindowProc(message_handler_->hwnd(),
|
| - WM_NCACTIVATE,
|
| - !!disable_inactive,
|
| - 0);
|
| + // Force the non-client area (most notably the title bar) to paint as either
|
| + // active or inactive, depending on the input.
|
| + SendMessage(message_handler_->hwnd(), WM_NCACTIVATE, !!disable_inactive, 0);
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|