summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-03-18 07:28:27 +0000
committernicm <nicm@openbsd.org>2016-03-18 07:28:27 +0000
commitf60be3ba63a963ee72b1c8aa13a4317edfe77fd3 (patch)
tree07fd52e70b0433a70f012e147f1e05aee0f434c8 /usr.bin/tmux/server-client.c
parentRemove support for ARM8, an old armv4 processor without thumb that was (diff)
downloadwireguard-openbsd-f60be3ba63a963ee72b1c8aa13a4317edfe77fd3.tar.xz
wireguard-openbsd-f60be3ba63a963ee72b1c8aa13a4317edfe77fd3.zip
Instead of reusing MouseUp at the finish of a drag, add a new key
MouseDragEnd. It can be useful to bind them separately in copy mode.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 03a679f8f5b..36d4ec131e8 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.182 2016/03/01 12:04:43 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.183 2016/03/18 07:28:27 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -385,33 +385,33 @@ server_client_check_mouse(struct client *c)
c->tty.mouse_drag_release = NULL;
/*
- * End a mouse drag by passing a MouseUp key corresponding to
- * the button that started the drag.
+ * End a mouse drag by passing a MouseDragEnd key corresponding
+ * to the button that started the drag.
*/
switch (c->tty.mouse_drag_flag) {
case 1:
if (where == PANE)
- key = KEYC_MOUSEUP1_PANE;
+ key = KEYC_MOUSEDRAGEND1_PANE;
if (where == STATUS)
- key = KEYC_MOUSEUP1_STATUS;
+ key = KEYC_MOUSEDRAGEND1_STATUS;
if (where == BORDER)
- key = KEYC_MOUSEUP1_BORDER;
+ key = KEYC_MOUSEDRAGEND1_BORDER;
break;
case 2:
if (where == PANE)
- key = KEYC_MOUSEUP2_PANE;
+ key = KEYC_MOUSEDRAGEND2_PANE;
if (where == STATUS)
- key = KEYC_MOUSEUP2_STATUS;
+ key = KEYC_MOUSEDRAGEND2_STATUS;
if (where == BORDER)
- key = KEYC_MOUSEUP2_BORDER;
+ key = KEYC_MOUSEDRAGEND2_BORDER;
break;
case 3:
if (where == PANE)
- key = KEYC_MOUSEUP3_PANE;
+ key = KEYC_MOUSEDRAGEND3_PANE;
if (where == STATUS)
- key = KEYC_MOUSEUP3_STATUS;
+ key = KEYC_MOUSEDRAGEND3_STATUS;
if (where == BORDER)
- key = KEYC_MOUSEUP3_BORDER;
+ key = KEYC_MOUSEDRAGEND3_BORDER;
break;
default:
key = KEYC_MOUSE;