aboutsummaryrefslogtreecommitdiff
path: root/server-client.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-12-25 23:33:30 +0000
committerTiago Cunha <tcunha@gmx.com>2011-12-25 23:33:30 +0000
commit3a9a24a7c03dab8d3f7a6772519eab8b7113161d (patch)
tree9e76f812b5052327cea8739c55fed5226aa9f140 /server-client.c
parentc1b994852594b23b7443e01e05257c991684ba4e (diff)
downloadrtmux-3a9a24a7c03dab8d3f7a6772519eab8b7113161d.tar.gz
rtmux-3a9a24a7c03dab8d3f7a6772519eab8b7113161d.tar.bz2
rtmux-3a9a24a7c03dab8d3f7a6772519eab8b7113161d.zip
Sync OpenBSD patchset 988:
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.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server-client.c b/server-client.c
index 6ed53b8a..40655748 100644
--- a/server-client.c
+++ b/server-client.c
@@ -319,6 +319,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)) {
/*