summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-28 02:13:21 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-28 02:13:21 (EDT)
commit017d9313b2703024a6df4803d49b718bbfda33d0 (patch)
tree677523def14222b5c0eb18fb0eb7027b99b39b06 /src
parent2c9b84b13d2919e7685a5a13fd858345a17c210e (diff)
downloadmarquee-017d9313b2703024a6df4803d49b718bbfda33d0.zip
marquee-017d9313b2703024a6df4803d49b718bbfda33d0.tar.gz
marquee-017d9313b2703024a6df4803d49b718bbfda33d0.tar.bz2
MqTabLabel: Close on middle click
Diffstat (limited to 'src')
-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);
}