aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicm <nicm>2015-04-21 15:21:41 +0000
committernicm <nicm>2015-04-21 15:21:41 +0000
commit4cf4302962558be4d5e7a87c57f084d1187fa330 (patch)
tree4b8d4298c64d82f3bba56f8ef143e9e86917d8ad
parent1f404f6a23969516007c77eeec89876154c9a4a4 (diff)
downloadrtmux-4cf4302962558be4d5e7a87c57f084d1187fa330.tar.gz
rtmux-4cf4302962558be4d5e7a87c57f084d1187fa330.tar.bz2
rtmux-4cf4302962558be4d5e7a87c57f084d1187fa330.zip
Don't eat the mouse event that triggers a drag end because we may want
to pass it on to application inside the pane.
-rw-r--r--input-keys.c1
-rw-r--r--server-client.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/input-keys.c b/input-keys.c
index ae00e4a9..d812a906 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -251,5 +251,6 @@ input_key_mouse(struct window_pane *wp, struct mouse_event *m)
buf[len++] = x + 33;
buf[len++] = y + 33;
}
+ log_debug("writing mouse %.*s", (int)len, buf);
bufferevent_write(wp->event, buf, len);
}
diff --git a/server-client.c b/server-client.c
index b4d1f744..c022a36f 100644
--- a/server-client.c
+++ b/server-client.c
@@ -391,7 +391,7 @@ server_client_check_mouse(struct client *c)
c->tty.mouse_drag_release = NULL;
c->tty.mouse_drag_flag = 0;
- return (KEYC_NONE);
+ return (KEYC_MOUSE); /* not a key, but still may want to pass */
}
/* Convert to a key binding. */