mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Only select pane on click, not drag. From hsim at gmx.li.
This commit is contained in:
parent
538af37c35
commit
acfabf3a50
@ -331,7 +331,8 @@ server_client_handle_key(int key, struct mouse_event *mouse, void *data)
|
|||||||
if (mouse->y + 1 == c->tty.sy &&
|
if (mouse->y + 1 == c->tty.sy &&
|
||||||
options_get_number(oo, "mouse-select-window") &&
|
options_get_number(oo, "mouse-select-window") &&
|
||||||
options_get_number(oo, "status")) {
|
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);
|
status_set_window_at(c, mouse->x);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user