Tweak how mouse works on popup: only Meta alone resizes or moves, not

Meta with other modifiers; button 2 on the left or top border opens
menu, right or bottom resizes; button 1 on any border moves.
This commit is contained in:
nicm
2021-08-13 23:05:40 +00:00
parent 63aa968642
commit 7d7d7c9605
2 changed files with 16 additions and 12 deletions

1
tmux.h
View File

@ -1158,6 +1158,7 @@ RB_HEAD(sessions, session);
#define MOUSE_MASK_CTRL 16
#define MOUSE_MASK_DRAG 32
#define MOUSE_MASK_WHEEL 64
#define MOUSE_MASK_MODIFIERS (MOUSE_MASK_SHIFT|MOUSE_MASK_META|MOUSE_MASK_CTRL)
/* Mouse wheel states. */
#define MOUSE_WHEEL_UP 0