summaryrefslogtreecommitdiffstats
path: root/popup.c
diff options
context:
space:
mode:
authornicm <nicm>2022-02-01 18:12:20 +0000
committernicm <nicm>2022-02-01 18:12:20 +0000
commit97900d0442252aa4b76f89745718038f39717ecd (patch)
tree1dd2fc5e672174f3a737255f446b48518bcc2316 /popup.c
parent7e34645fcbe93984461343d67373a29e552fec20 (diff)
A menu must be shown on a client, so always give the client when adding
the items. Also fix mode menus.
Diffstat (limited to 'popup.c')
-rw-r--r--popup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/popup.c b/popup.c
index bebc7cc6..4b4c58ca 100644
--- a/popup.c
+++ b/popup.c
@@ -566,10 +566,10 @@ popup_key_cb(struct client *c, void *data, struct key_event *event)
menu:
pd->menu = menu_create("");
if (pd->flags & POPUP_INTERNAL) {
- menu_add_items(pd->menu, popup_internal_menu_items, NULL, NULL,
+ menu_add_items(pd->menu, popup_internal_menu_items, NULL, c,
NULL);
} else
- menu_add_items(pd->menu, popup_menu_items, NULL, NULL, NULL);
+ menu_add_items(pd->menu, popup_menu_items, NULL, c, NULL);
if (m->x >= (pd->menu->width + 4) / 2)
x = m->x - (pd->menu->width + 4) / 2;
else