diff options
-rw-r--r-- | src/tab-label.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tab-label.c b/src/tab-label.c index 134fc8a..3680078 100644 --- a/src/tab-label.c +++ b/src/tab-label.c @@ -231,8 +231,10 @@ static gboolean button_press_cb(GtkWidget *widget, GdkEventButton *event, MqTabLabel *tab_label) { - /* Create a popover menu on right click. */ - if (event->button == 2) { + if (event->type == GDK_2BUTTON_PRESS) { + mq_tab_page_set_title(tab_label->tab_page, "Renamed"); + set_title(tab_label, "Renamed"); + } else if (event->button == 2) { mq_tab_page_close(tab_label->tab_page); } else if (event->button == 3) { create_tab_popover(widget, tab_label); |