Turn on both button and all mouse modes for menus since some terminals

only support the former.
This commit is contained in:
nicm 2021-09-09 19:37:17 +00:00
parent 34312fd6ee
commit a0b39dba31

2
menu.c
View File

@ -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); cmd_find_copy_state(&md->fs, fs);
screen_init(&md->s, menu->width + 4, menu->count + 2, 0); screen_init(&md->s, menu->width + 4, menu->count + 2, 0);
if (~md->flags & MENU_NOMOUSE) 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->s.mode &= ~MODE_CURSOR;
md->px = px; md->px = px;