mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Support more mouse buttons when the terminal sends them, GitHub issue
3055.
This commit is contained in:
@ -578,13 +578,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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user