diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-01-16 17:40:32 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-01-16 17:40:32 +0200 |
commit | 73a506239e4dc8be07313147cde4046a3bd848e1 (patch) | |
tree | 84e74a4d0ebff76d9d31eb080e757ee05286a58c /src/ui/util.c | |
parent | c5ae02ce788d5e510ac24a3982bd227eb0784d3b (diff) |
Navbar menu placement
Popup menus opened from navbar buttons should open below the button.
IssueID #436
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 41e645de..31907721 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -680,7 +680,7 @@ static iBool isCommandIgnoredByMenus_(const char *cmd) { | |||
680 | static iLabelWidget *parentMenuButton_(const iWidget *menu) { | 680 | static iLabelWidget *parentMenuButton_(const iWidget *menu) { |
681 | if (isInstance_Object(menu->parent, &Class_LabelWidget)) { | 681 | if (isInstance_Object(menu->parent, &Class_LabelWidget)) { |
682 | iLabelWidget *button = (iLabelWidget *) menu->parent; | 682 | iLabelWidget *button = (iLabelWidget *) menu->parent; |
683 | if (!cmp_String(command_LabelWidget(button), "menu.open")) { | 683 | if (equal_Command(cstr_String(command_LabelWidget(button)), "menu.open")) { |
684 | return button; | 684 | return button; |
685 | } | 685 | } |
686 | } | 686 | } |