mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 10:25:37 +00:00
Need to call recalculate_sizes() when changing window with the mouse,
from marcel partap.
This commit is contained in:
parent
f152379e5a
commit
e87d4b43ab
1 changed files with 3 additions and 0 deletions
|
|
@ -282,16 +282,19 @@ server_client_check_mouse(
|
|||
options_get_number(oo, "mouse-select-window")) {
|
||||
if (mouse->b == MOUSE_UP && c->last_mouse.b != MOUSE_UP) {
|
||||
status_set_window_at(c, mouse->x);
|
||||
recalculate_sizes();
|
||||
return;
|
||||
}
|
||||
if (mouse->b & MOUSE_45) {
|
||||
if ((mouse->b & MOUSE_BUTTON) == MOUSE_1) {
|
||||
session_previous(c->session, 0);
|
||||
server_redraw_session(s);
|
||||
recalculate_sizes();
|
||||
}
|
||||
if ((mouse->b & MOUSE_BUTTON) == MOUSE_2) {
|
||||
session_next(c->session, 0);
|
||||
server_redraw_session(s);
|
||||
recalculate_sizes();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue