diff options
-rw-r--r-- | src/tab.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -241,12 +241,15 @@ create_tab_popover(GtkWidget *widget, MqTab *tab) static gboolean tab_label_button_press_cb(GtkWidget *widget, GdkEvent *event, MqTab *tab) { - /* Make sure this is a right mouse button press event. */ - if (event->type != GDK_BUTTON_PRESS || event->button.button != 3) { + /* Make sure this is a mouse button press event. */ + if (event->type != GDK_BUTTON_PRESS) { return FALSE; } - create_tab_popover(widget, tab); + /* Create a popover menu on right click. */ + if (event->button.button == 3) { + create_tab_popover(widget, tab); + } return FALSE; } |