From a6e43824140cebc291b59e52fdd6b4371657e2a9 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 24 Dec 2011 08:27:00 +0000 Subject: Fix so that when mouse-select-pane and mouse-select-window are both enabled, clicking on the status line does not change the current pane. From Romain Francoise. --- usr.bin/tmux/server-client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index e43a11db1e0..6e18cb6a533 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.61 2011/08/20 20:37:30 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.62 2011/12/24 08:26:59 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -320,6 +320,8 @@ server_client_handle_key(int key, struct mouse_event *mouse, void *data) if (c->flags & CLIENT_READONLY) return; if (options_get_number(oo, "mouse-select-pane") && + (!(options_get_number(oo, "status") && + mouse->y + 1 == c->tty.sy)) && ((!(mouse->b & MOUSE_DRAG) && mouse->b != MOUSE_UP) || wp->mode != &window_copy_mode)) { /* -- cgit v1.2.3