summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/gtk/tabs/tab_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/gtk/tabs/tab_gtk.cc b/chrome/browser/gtk/tabs/tab_gtk.cc
index 96663f7..55062dc 100644
--- a/chrome/browser/gtk/tabs/tab_gtk.cc
+++ b/chrome/browser/gtk/tabs/tab_gtk.cc
@@ -167,6 +167,8 @@ gboolean TabGtk::OnMousePress(GtkWidget* widget, GdkEventButton* event,
if (just_selected) {
tab->delegate_->SelectTab(tab);
}
+ } else if (event->button == 3) {
+ tab->ShowContextMenu();
}
return TRUE;
@@ -177,8 +179,6 @@ gboolean TabGtk::OnMouseRelease(GtkWidget* widget, GdkEventButton* event,
TabGtk* tab) {
if (event->button == 2) {
tab->delegate_->CloseTab(tab);
- } else if (event->button == 3) {
- tab->ShowContextMenu();
}
return TRUE;