From 017d9313b2703024a6df4803d49b718bbfda33d0 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 28 Oct 2017 02:13:21 -0400 Subject: MqTabLabel: Close on middle click --- 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); } -- cgit v0.9.1