Index: ui/views/win/hwnd_message_handler.cc |
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc |
index 9b40b5089d88dca57f1a446cb805ed2431a6d7e1..7b30562b194cd50cf1b9d15bdca9e990e26bd251 100644 |
--- a/ui/views/win/hwnd_message_handler.cc |
+++ b/ui/views/win/hwnd_message_handler.cc |
@@ -2638,8 +2638,13 @@ bool HWNDMessageHandler::HandleMouseInputForCaption(unsigned int message, |
break; |
} |
- case WM_NCMOUSELEAVE: |
+ case WM_NCMOUSELEAVE: { |
+ // If the DWM is rendering the window controls, we need to give the DWM's |
+ // default window procedure the chance to repaint the window border icons |
+ if (HasSystemFrame()) |
+ handled = DwmDefWindowProc(hwnd(), WM_NCMOUSELEAVE, 0, 0, NULL) != 0; |
break; |
+ } |
default: |
left_button_down_on_caption_ = false; |