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

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

Issue 792303002: [Win] Fix detection of normal windows in HWNDMessageHandler::OnSizeConstraintsChanged. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 01b3f7dcc052c504227acdfc4665d051b0b245fa..c374289cd16c3f077f5e13c5f5d251761c2153ef 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -879,8 +879,7 @@ void HWNDMessageHandler::SetFullscreen(bool fullscreen) {
void HWNDMessageHandler::SizeConstraintsChanged() {
LONG style = GetWindowLong(hwnd(), GWL_STYLE);
// Ignore if this is not a standard window.
- // WS_OVERLAPPED is just the *absence* of WS_POPUP and WS_CHILD.
- if ((style & (WS_POPUP | WS_CHILD)) == WS_OVERLAPPED)
+ if (style & (WS_POPUP | WS_CHILD))
return;
LONG exstyle = GetWindowLong(hwnd(), GWL_EXSTYLE);
« 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