Chromium Code Reviews| 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..72854ea9d39dde94b7abe49c5848001ba1c04dce 100644 |
| --- a/ui/views/win/hwnd_message_handler.cc |
| +++ b/ui/views/win/hwnd_message_handler.cc |
| @@ -2638,8 +2638,15 @@ 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 16:17:13
Does the conditional really matter here?
elawrence
2016/08/15 16:31:14
I'm afraid I'm ill-qualified to answer that; I mat
msw
2016/08/15 18:57:35
The issue doesn't seem to repro with non-glass bro
|
| + LRESULT result; |
| + DwmDefWindowProc(hwnd(), WM_NCMOUSELEAVE, 0, 0, &result); |
|
msw
2016/08/15 18:57:35
nit q: I wonder if we should set handled to true f
elawrence
2016/08/16 16:00:49
Done.
|
| + } |
| break; |
| + } |
| default: |
| left_button_down_on_caption_ = false; |