From acfabf3a50c05a576435c1bc86f36af07362b529 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 8 May 2011 20:45:35 +0000 Subject: [PATCH] Only select pane on click, not drag. From hsim at gmx.li. --- server-client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server-client.c b/server-client.c index 7ef91236..8b2ea00f 100644 --- a/server-client.c +++ b/server-client.c @@ -331,7 +331,8 @@ server_client_handle_key(int key, struct mouse_event *mouse, void *data) if (mouse->y + 1 == c->tty.sy && options_get_number(oo, "mouse-select-window") && options_get_number(oo, "status")) { - if (mouse->b == MOUSE_UP) { + if (mouse->b == MOUSE_UP && + c->last_mouse.b != MOUSE_UP) { status_set_window_at(c, mouse->x); return; }