summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-16 17:40:32 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-16 17:40:32 +0200
commit73a506239e4dc8be07313147cde4046a3bd848e1 (patch)
tree84e74a4d0ebff76d9d31eb080e757ee05286a58c /src/ui/util.c
parentc5ae02ce788d5e510ac24a3982bd227eb0784d3b (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.c2
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) {
680static iLabelWidget *parentMenuButton_(const iWidget *menu) { 680static 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 }