Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 2244263002: Ensure window border icons repaint when DWM is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Correct parameters when passing WM_NCMouseLeave to DwmDefaultWndProc Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698