diff options
author | Thomas Adam <thomas@xteddy.org> | 2022-02-16 22:01:11 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2022-02-16 22:01:11 +0000 |
commit | 722f395e61f1ded4d1d9506688f3240cff933435 (patch) | |
tree | 0a65d5cf06c94a87411553905ee6f9227040e529 /input-keys.c | |
parent | c7c7e875a0f71451564746a20db8d84c418ad7d5 (diff) | |
parent | 0027ee13a089efe7d1db1a4cfedb9b801635ded8 (diff) | |
download | rtmux-722f395e61f1ded4d1d9506688f3240cff933435.tar.gz rtmux-722f395e61f1ded4d1d9506688f3240cff933435.tar.bz2 rtmux-722f395e61f1ded4d1d9506688f3240cff933435.zip |
Merge branch 'obsd-master' into master
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); } |