diff options
author | nicm <nicm> | 2022-02-16 18:55:05 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2022-04-06 14:19:49 +0100 |
commit | 6a0a783c268b00df165b115d915b628e36a0f69b (patch) | |
tree | 872032a8bf3e943a444d84e4751a7197d646862c /input-keys.c | |
parent | 7f40c5b647241e0ac3c71c3c95a8cc33790e707e (diff) | |
download | rtmux-6a0a783c268b00df165b115d915b628e36a0f69b.tar.gz rtmux-6a0a783c268b00df165b115d915b628e36a0f69b.tar.bz2 rtmux-6a0a783c268b00df165b115d915b628e36a0f69b.zip |
Support more mouse buttons when the terminal sends them, GitHub issue
3055.
Diffstat (limited to 'input-keys.c')
-rw-r--r-- | input-keys.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/input-keys.c b/input-keys.c index b4770808..47614aa0 100644 --- a/input-keys.c +++ b/input-keys.c @@ -577,13 +577,13 @@ input_key_get_mouse(struct screen *s, struct mouse_event *m, u_int x, u_int y, */ if (m->sgr_type != ' ') { if (MOUSE_DRAG(m->sgr_b) && - MOUSE_BUTTONS(m->sgr_b) == 3 && + MOUSE_RELEASE(m->sgr_b) && (~s->mode & MODE_MOUSE_ALL)) return (0); } else { if (MOUSE_DRAG(m->b) && - MOUSE_BUTTONS(m->b) == 3 && - MOUSE_BUTTONS(m->lb) == 3 && + MOUSE_RELEASE(m->b) && + MOUSE_RELEASE(m->lb) && (~s->mode & MODE_MOUSE_ALL)) return (0); } |