mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 01:18:52 +00:00
Sync OpenBSD patchset 1064:
Need to call recalculate_sizes() when changing window with the mouse, from marcel partap.
This commit is contained in:
parent
68ba5377e3
commit
cf8faa3b33
@ -281,16 +281,19 @@ server_client_check_mouse(
|
|||||||
options_get_number(oo, "mouse-select-window")) {
|
options_get_number(oo, "mouse-select-window")) {
|
||||||
if (mouse->b == MOUSE_UP && c->last_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);
|
||||||
|
recalculate_sizes();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mouse->b & MOUSE_45) {
|
if (mouse->b & MOUSE_45) {
|
||||||
if ((mouse->b & MOUSE_BUTTON) == MOUSE_1) {
|
if ((mouse->b & MOUSE_BUTTON) == MOUSE_1) {
|
||||||
session_previous(c->session, 0);
|
session_previous(c->session, 0);
|
||||||
server_redraw_session(s);
|
server_redraw_session(s);
|
||||||
|
recalculate_sizes();
|
||||||
}
|
}
|
||||||
if ((mouse->b & MOUSE_BUTTON) == MOUSE_2) {
|
if ((mouse->b & MOUSE_BUTTON) == MOUSE_2) {
|
||||||
session_next(c->session, 0);
|
session_next(c->session, 0);
|
||||||
server_redraw_session(s);
|
server_redraw_session(s);
|
||||||
|
recalculate_sizes();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user