diff options
author | 2016-11-16 11:37:16 +0000 | |
---|---|---|
committer | 2016-11-16 11:37:16 +0000 | |
commit | 30e31e83f882455f0b89d2c112bc794e7e614b96 (patch) | |
tree | 46a7e7a191413d46da44a7e0686f70c2392e68a5 /usr.bin/tmux/server-client.c | |
parent | Add support for big reads in perl and fix the jumbo test, also remove (diff) | |
download | wireguard-openbsd-30e31e83f882455f0b89d2c112bc794e7e614b96.tar.xz wireguard-openbsd-30e31e83f882455f0b89d2c112bc794e7e614b96.zip |
Do not stop dragging when the wheel is pressed, from Artem Fokin.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r-- | usr.bin/tmux/server-client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index 5b1441050ac..81ba5012992 100644 --- a/usr.bin/tmux/server-client.c +++ b/usr.bin/tmux/server-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.199 2016/11/15 15:17:28 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.200 2016/11/16 11:37:16 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |