From e87d4b43abdba32698ed44590f7fd84cf6891c8d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 17 Mar 2012 21:34:34 +0000 Subject: [PATCH] Need to call recalculate_sizes() when changing window with the mouse, from marcel partap. --- server-client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server-client.c b/server-client.c index 2f84f011..443f9e38 100644 --- a/server-client.c +++ b/server-client.c @@ -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; }