diff options
author | jeremya@chromium.org <jeremya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-17 13:26:47 +0000 |
---|---|---|
committer | jeremya@chromium.org <jeremya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-17 13:26:47 +0000 |
commit | 585e1331aa544d62587c5f2daf1207300876eff5 (patch) | |
tree | 92becf7e0eb8d81744450ae3799f7fe34eb51786 /ui | |
parent | 8e10edb454c56acc742d2924941140f76233d986 (diff) | |
download | chromium_src-585e1331aa544d62587c5f2daf1207300876eff5.zip chromium_src-585e1331aa544d62587c5f2daf1207300876eff5.tar.gz chromium_src-585e1331aa544d62587c5f2daf1207300876eff5.tar.bz2 |
Fixed: on windows, fixed-size app windows would lose their shadows.
Some code checked the resizability of the window and used it to key a change in
window style. For app windows, we always want a very particular window style,
so we check for the remove_standard_frame Widget::InitParams option and ignore
the resize flag.
Also, change the shell window NonClientHitTest code to not return HTTOPLEFT and
friends when the window is non-resizable.
R=ben@chromium.org
BUG=155219
Review URL: https://chromiumcodereview.appspot.com/11154007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r-- | ui/views/widget/widget_hwnd_utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/views/widget/widget_hwnd_utils.cc b/ui/views/widget/widget_hwnd_utils.cc index 3df2281..2f22feb 100644 --- a/ui/views/widget/widget_hwnd_utils.cc +++ b/ui/views/widget/widget_hwnd_utils.cc @@ -60,7 +60,7 @@ void CalculateWindowStylesFromInitParams( bool can_maximize = widget_delegate->CanMaximize(); if (can_maximize) { *style |= WS_OVERLAPPEDWINDOW; - } else if (can_resize) { + } else if (can_resize || params.remove_standard_frame) { *style |= WS_OVERLAPPED | WS_THICKFRAME; } if (native_widget_delegate->IsDialogBox()) { |