summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2011-05-08 20:45:36 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2011-05-08 20:45:36 +0000
commit70e6347ad33930d83416134cd5d50bbf91ef5c37 (patch)
treecd94fdc3c905a58bf4a322b29f5057eb5b8add3d /usr.bin/tmux
parent5596355a5c9c08414df939334dcad5c234158a1f (diff)
Only select pane on click, not drag. From hsim at gmx.li.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/server-client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 94ab0f74b09..b782c7d513f 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.57 2011/05/08 20:34:12 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.58 2011/05/08 20:45:35 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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;
}