From: nicm Date: Thu, 9 Sep 2021 19:37:17 +0000 (+0000) Subject: Turn on both button and all mouse modes for menus since some terminals X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2b7bea195bd5a2e2ddb40e53af9c823b15e964ea;p=openbsd Turn on both button and all mouse modes for menus since some terminals only support the former. --- 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 @@ -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;