From 55e23dd24bf29c8aa6c257f74bac9b0b10c7e391 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 29 Aug 2020 08:26:37 +0300 Subject: Context menu behavior improvements --- src/ui/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/window.c') diff --git a/src/ui/window.c b/src/ui/window.c index a8c86e56..bdf80e52 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -229,10 +229,10 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) { isRequestOngoing_DocumentWidget(doc) ? stopCStr_ : reloadCStr_); } } - else if (equal_Command(cmd, "mouse.clicked")) { + else if (equal_Command(cmd, "mouse.clicked") && arg_Command(cmd)) { iWidget *widget = pointer_Command(cmd); iWidget *menu = findWidget_App("doctabs.menu"); - if (isTabButton_Widget(widget)) { + if (isTabButton_Widget(widget) && !isVisible_Widget(menu)) { iWidget *tabs = findWidget_App("doctabs"); showTabPage_Widget(tabs, tabPage_Widget(tabs, childIndex_Widget(widget->parent, widget))); -- cgit v1.2.3