summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/menu.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-09-09 19:37:18 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-09-09 19:37:18 +0000
commit4b8a4c93c2b918843435fd6bea002eb7c1f83de1 (patch)
treeab3d19b6e6f246647616386a7e67c839748a70e0 /usr.bin/tmux/menu.c
parent6120a48f2ada7bc4fdb74d5586e2013c390b2317 (diff)
Turn on both button and all mouse modes for menus since some terminals
only support the former.
Diffstat (limited to 'usr.bin/tmux/menu.c')
-rw-r--r--usr.bin/tmux/menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/menu.c b/usr.bin/tmux/menu.c
index 7d64d5c3c1f..0a1fa0da60e 100644
--- a/usr.bin/tmux/menu.c
+++ b/usr.bin/tmux/menu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: menu.c,v 1.36 2021/09/09 06:57:48 nicm Exp $ */
+/* $OpenBSD: menu.c,v 1.37 2021/09/09 19:37:17 nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -381,7 +381,7 @@ menu_prepare(struct menu *menu, int flags, struct cmdq_item *item, u_int px,
cmd_find_copy_state(&md->fs, fs);
screen_init(&md->s, menu->width + 4, menu->count + 2, 0);
if (~md->flags & MENU_NOMOUSE)
- md->s.mode |= MODE_MOUSE_BUTTON;
+ md->s.mode |= (MODE_MOUSE_ALL|MODE_MOUSE_BUTTON);
md->s.mode &= ~MODE_CURSOR;
md->px = px;