summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tab.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tab.c b/src/tab.c
index f1ef600..8ba6f0c 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -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;
}