diff options
author | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-25 21:30:42 +0000 |
---|---|---|
committer | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-25 21:30:42 +0000 |
commit | 96cddc36d4f3d2e785da49757514f2691d914c59 (patch) | |
tree | 5217266bd3e41a6c9297279e0a7e3481a423acd5 | |
parent | 662464c13aed52b4420d4645c843ba282be22b4e (diff) | |
download | chromium_src-96cddc36d4f3d2e785da49757514f2691d914c59.zip chromium_src-96cddc36d4f3d2e785da49757514f2691d914c59.tar.gz chromium_src-96cddc36d4f3d2e785da49757514f2691d914c59.tar.bz2 |
Fix bug in constrained windows where the close box was detaching instead of closing. We weren't considering HTCLOSE in the test of acceptable hittest components that might cause detaching.
B=1341975
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1335 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/views/constrained_window_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/views/constrained_window_impl.cc b/chrome/browser/views/constrained_window_impl.cc index c5c43e1c..9ea3220 100644 --- a/chrome/browser/views/constrained_window_impl.cc +++ b/chrome/browser/views/constrained_window_impl.cc @@ -1344,7 +1344,8 @@ LRESULT ConstrainedWindowImpl::OnMouseActivate(HWND window, // We only detach the window if the user clicked on the title bar. That // way, users can click inside the contents of legitimate popups obtained // with a mouse gesture. - if (hittest_code != HTCLIENT && hittest_code != HTNOWHERE) { + if (hittest_code != HTCLIENT && hittest_code != HTNOWHERE && + hittest_code != HTCLOSE) { ActivateConstrainedWindow(); } else { // If the user did not click on the title bar, don't stop message |