Fix parsing of aliases again (GitHub issue 2842), also make argument

parsing a bit simpler and fix the names of some client flags.
This commit is contained in:
nicm
2021-09-09 06:57:48 +00:00
parent 329c2c2a91
commit 5a4b2fd68c
3 changed files with 26 additions and 29 deletions

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