diff options
-rw-r--r-- | views/window/window_win.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/window/window_win.cc b/views/window/window_win.cc index b0698fd..9fb6e27 100644 --- a/views/window/window_win.cc +++ b/views/window/window_win.cc @@ -702,7 +702,8 @@ LRESULT WindowWin::OnNCHitTest(const CPoint& point) { void WindowWin::OnNCPaint(HRGN rgn) { // When using a custom frame, we want to avoid calling DefWindowProc() since // that may render artifacts. - SetMsgHandled(is_in_size_move_ && !delegate_->IsUsingNativeFrame()); + SetMsgHandled((!IsActive() || is_in_size_move_) && + !delegate_->IsUsingNativeFrame()); } LRESULT WindowWin::OnNCUAHDrawCaption(UINT msg, WPARAM w_param, |