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

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: Add two braces to strategic brace reserve 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..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;
« 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