summaryrefslogtreecommitdiff
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index c5b112856..f37410643 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -3223,8 +3223,9 @@ on_tabline_menu(GtkWidget *widget, GdkEvent *event)
{
if (clicked_page == 0)
{
- /* Click after all tabs moves to next tab page. */
- if (send_tabline_event(0) && gtk_main_level() > 0)
+ /* Click after all tabs moves to next tab page. When "x" is
+ * small guess it's the left button. */
+ if (send_tabline_event(x < 50 ? -1 : 0) && gtk_main_level() > 0)
gtk_main_quit();
}
#ifndef HAVE_GTK2