summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tabs/tab.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/tabs/tab.cc')
-rw-r--r--chrome/browser/views/tabs/tab.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/views/tabs/tab.cc b/chrome/browser/views/tabs/tab.cc
index 86f0b2c..576a84f 100644
--- a/chrome/browser/views/tabs/tab.cc
+++ b/chrome/browser/views/tabs/tab.cc
@@ -163,7 +163,7 @@ bool Tab::OnMousePressed(const views::MouseEvent& event) {
// it dragged the whole window. This is done by sending a non-client
// message which is handled by the default window procedure and causes
// the window get the default drag-on-caption behavior.
- if (delegate_->ContainsExactlyOneTab()) {
+ if (!delegate_->HasAvailableDragActions()) {
SendMessage(GetWidget()->GetHWND(), WM_NCLBUTTONDOWN,
HTCAPTION, MAKELPARAM(event.x(), event.y()));
return false;