summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/popup.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2022-02-01 18:12:21 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2022-02-01 18:12:21 +0000
commitb1b748cecde4d85fed803e26c3fb543cf53adffa (patch)
tree2ed7106e80488590441ced5f850f6a549a0c7fdc /usr.bin/tmux/popup.c
parent37b6e53e336e1319bbeca5a85564a574d4f9192a (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 'usr.bin/tmux/popup.c')
-rw-r--r--usr.bin/tmux/popup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/popup.c b/usr.bin/tmux/popup.c
index 07f57ab8d61..79b01fce115 100644
--- a/usr.bin/tmux/popup.c
+++ b/usr.bin/tmux/popup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: popup.c,v 1.43 2022/01/17 10:40:03 nicm Exp $ */
+/* $OpenBSD: popup.c,v 1.44 2022/02/01 18:12:20 nicm Exp $ */
/*
* Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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