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..e3171ece9ef060da1cdc464262dc8a37ea96347c 100644 |
--- a/ui/views/win/hwnd_message_handler.cc |
+++ b/ui/views/win/hwnd_message_handler.cc |
@@ -2638,8 +2638,14 @@ 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()) { |
sky
2016/08/15 22:03:50
no {}
elawrence
2016/08/16 16:00:49
Done.
|
+ handled = DwmDefWindowProc(hwnd(), WM_NCMOUSELEAVE, 0, 0, NULL) != 0; |
+ } |
break; |
+ } |
default: |
left_button_down_on_caption_ = false; |