aboutsummaryrefslogtreecommitdiff
path: root/server-client.c
diff options
context:
space:
mode:
authornicm <nicm>2016-11-16 11:37:16 +0000
committernicm <nicm>2016-11-16 11:37:16 +0000
commit81f1d625af785b83028ecfcc68cda47c7529c8a8 (patch)
tree9d64df25f40a66a8292280a22dffce617a6594a3 /server-client.c
parent5636d38a9dd399856fd36d33f5d14595e4cafde1 (diff)
downloadrtmux-81f1d625af785b83028ecfcc68cda47c7529c8a8.tar.gz
rtmux-81f1d625af785b83028ecfcc68cda47c7529c8a8.tar.bz2
rtmux-81f1d625af785b83028ecfcc68cda47c7529c8a8.zip
Do not stop dragging when the wheel is pressed, from Artem Fokin.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server-client.c b/server-client.c
index e6ca8a42..e2d1c5d9 100644
--- a/server-client.c
+++ b/server-client.c
@@ -328,7 +328,7 @@ server_client_check_mouse(struct client *c)
type = WHEEL;
x = m->x, y = m->y, b = m->b;
log_debug("wheel at %u,%u", x, y);
- } else if (MOUSE_BUTTONS(m->b) == 3) {
+ } else if (MOUSE_RELEASE(m->b)) {
type = UP;
x = m->x, y = m->y, b = m->lb;
log_debug("up at %u,%u", x, y);
@@ -423,7 +423,7 @@ have_event:
m->wp = -1;
/* Stop dragging if needed. */
- if (type != DRAG && c->tty.mouse_drag_flag) {
+ if (type != DRAG && type != WHEEL && c->tty.mouse_drag_flag) {
if (c->tty.mouse_drag_release != NULL)
c->tty.mouse_drag_release(c, m);