From 1e7cea407de16b493fa95a7e6f52cb135378cc85 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Wed, 18 May 2011 20:31:32 +0000 Subject: [PATCH] Sync OpenBSD patchset 908: Only select pane on click, not drag. From hsim at gmx.li. --- server-client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server-client.c b/server-client.c index 826529be..ea3cb47d 100644 --- a/server-client.c +++ b/server-client.c @@ -1,4 +1,4 @@ -/* $Id: server-client.c,v 1.60 2011-05-18 20:30:14 tcunha Exp $ */ +/* $Id: server-client.c,v 1.61 2011-05-18 20:31:32 tcunha Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -330,7 +330,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; }