| 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 08e337f7ac4cf8cce5cd45de4a948a6f377faef0..fe562a7c904c9d74739fc01d28174c360a6028e0 100644
|
| --- a/ui/views/win/hwnd_message_handler.cc
|
| +++ b/ui/views/win/hwnd_message_handler.cc
|
| @@ -871,7 +871,8 @@ void HWNDMessageHandler::SetFullscreen(bool fullscreen) {
|
| void HWNDMessageHandler::SizeConstraintsChanged() {
|
| LONG style = GetWindowLong(hwnd(), GWL_STYLE);
|
| // Ignore if this is not a standard window.
|
| - if (!(style & WS_OVERLAPPED))
|
| + // WS_OVERLAPPED is just the *absence* of WS_POPUP and WS_CHILD.
|
| + if ((style & (WS_POPUP | WS_CHILD)) == WS_OVERLAPPED)
|
| return;
|
|
|
| if (delegate_->CanResize()) {
|
|
|