From 5325fce77391590378b6caf4fecff8bdb131f3b4 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 21 Apr 2015 15:21:41 +0000 Subject: [PATCH] Don't eat the mouse event that triggers a drag end because we may want to pass it on to application inside the pane. --- usr.bin/tmux/input-keys.c | 3 ++- usr.bin/tmux/server-client.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.bin/tmux/input-keys.c b/usr.bin/tmux/input-keys.c index 3a6b6b74932..f7fefb2578c 100644 --- a/usr.bin/tmux/input-keys.c +++ b/usr.bin/tmux/input-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input-keys.c,v 1.42 2015/04/19 21:34:21 nicm Exp $ */ +/* $OpenBSD: input-keys.c,v 1.43 2015/04/21 15:21:41 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index 45a9379347e..78978fcdd82 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.132 2015/04/20 15:34:56 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.133 2015/04/21 15:21:41 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -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. */ -- 2.20.1