| Index: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc
|
| ===================================================================
|
| --- ui/views/widget/desktop_aura/desktop_root_window_host_win.cc (revision 195576)
|
| +++ ui/views/widget/desktop_aura/desktop_root_window_host_win.cc (working copy)
|
| @@ -383,6 +383,18 @@
|
| 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);
|
| +}
|
| +
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // DesktopRootWindowHostWin, RootWindowHost implementation:
|
|
|
|
|