summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tab-label.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tab-label.c b/src/tab-label.c
index f86b05e..3f57fb6 100644
--- a/src/tab-label.c
+++ b/src/tab-label.c
@@ -161,7 +161,9 @@ button_press_cb(GtkWidget *widget, GdkEventButton *event,
MqTabLabel *tab_label)
{
/* Create a popover menu on right click. */
- if (event->button == 3) {
+ if (event->button == 2) {
+ mq_tab_page_close(tab_label->tab_page);
+ } else if (event->button == 3) {
create_tab_popover(widget, tab_label);
}