diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-05-08 20:45:36 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-05-08 20:45:36 +0000 |
commit | 70e6347ad33930d83416134cd5d50bbf91ef5c37 (patch) | |
tree | cd94fdc3c905a58bf4a322b29f5057eb5b8add3d /usr.bin/tmux | |
parent | 5596355a5c9c08414df939334dcad5c234158a1f (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.c | 5 |
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; } |