From a0b39dba3145d46dabdceca14bd88a6c10ce590d Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 9 Sep 2021 19:37:17 +0000 Subject: [PATCH] Turn on both button and all mouse modes for menus since some terminals only support the former. --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.c b/menu.c index d7094f89..043dafdd 100644 --- a/menu.c +++ b/menu.c @@ -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;