From ad27b7decd61d353031aeac5de01d44bcb374f26 Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 11 May 2019 06:34:56 +0000 Subject: Do not reduce window height by status line height for control mode clients, from George Nachman. --- resize.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'resize.c') diff --git a/resize.c b/resize.c index caac74ba..0e0b070d 100644 --- a/resize.c +++ b/resize.c @@ -174,11 +174,12 @@ recalculate_sizes(void) TAILQ_FOREACH(c, &clients, entry) { if (ignore_client_size(c)) continue; - if (c->tty.sy <= status_line_size(c)) + s = c->session; + if (c->tty.sy <= s->statuslines || (c->flags & CLIENT_CONTROL)) c->flags |= CLIENT_STATUSOFF; else c->flags &= ~CLIENT_STATUSOFF; - c->session->attached++; + s->attached++; } /* Walk each window and adjust the size. */ -- cgit