mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-24 15:48:58 +01:00
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.
This commit is contained in:
parent
c1b9948525
commit
3a9a24a7c0
@ -319,6 +319,8 @@ server_client_handle_key(int key, struct mouse_event *mouse, void *data)
|
|||||||
if (c->flags & CLIENT_READONLY)
|
if (c->flags & CLIENT_READONLY)
|
||||||
return;
|
return;
|
||||||
if (options_get_number(oo, "mouse-select-pane") &&
|
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) ||
|
((!(mouse->b & MOUSE_DRAG) && mouse->b != MOUSE_UP) ||
|
||||||
wp->mode != &window_copy_mode)) {
|
wp->mode != &window_copy_mode)) {
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user