summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2014-02-17 22:42:21 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2014-02-17 22:42:21 +0000
commitae061553d13d1b64fabe2225b5a506f757edf5ff (patch)
tree1a4d698d852ff328687f41368a56c3852a649f8c /usr.bin
parente0af7546a542c16efca99fcb796de92b389ef11f (diff)
Be consistent and allow only mouse down and mouse wheel for any pane
with mouse-select-pane rather than just in copy mode, reported by Balazs Kezes.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/server-client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index affef838ab3..c204d3fca83 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.117 2014/02/14 14:00:18 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.118 2014/02/17 22:42:20 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -324,9 +324,9 @@ server_client_check_mouse(struct client *c, struct window_pane *wp)
else if (statusat > 0 && m->y >= (u_int)statusat)
m->y = statusat - 1;
- /* Is this a pane selection? Allow down only in copy mode. */
+ /* Is this a pane selection? */
if (options_get_number(oo, "mouse-select-pane") &&
- (m->event == MOUSE_EVENT_DOWN || wp->mode != &window_copy_mode)) {
+ (m->event == MOUSE_EVENT_DOWN || m->event == MOUSE_EVENT_WHEEL)) {
window_set_active_at(wp->window, m->x, m->y);
server_redraw_window_borders(wp->window);
wp = wp->window->active; /* may have changed */