mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 19:08:58 +00:00
Reset the buttons when the wheel is used, from Balazs Kezes.
This commit is contained in:
parent
a94696defa
commit
fd9a53b4a4
@ -783,6 +783,8 @@ tty_keys_mouse(struct tty *tty, const char *buf, size_t len, size_t *size)
|
|||||||
else if (b == 1)
|
else if (b == 1)
|
||||||
m->wheel = MOUSE_WHEEL_DOWN;
|
m->wheel = MOUSE_WHEEL_DOWN;
|
||||||
m->event = MOUSE_EVENT_WHEEL;
|
m->event = MOUSE_EVENT_WHEEL;
|
||||||
|
|
||||||
|
m->button = 3;
|
||||||
} else if ((b & MOUSE_MASK_BUTTONS) == 3) {
|
} else if ((b & MOUSE_MASK_BUTTONS) == 3) {
|
||||||
if (~m->event & MOUSE_EVENT_DRAG && x == m->x && y == m->y)
|
if (~m->event & MOUSE_EVENT_DRAG && x == m->x && y == m->y)
|
||||||
m->event = MOUSE_EVENT_CLICK;
|
m->event = MOUSE_EVENT_CLICK;
|
||||||
|
Loading…
Reference in New Issue
Block a user