From b4e74f4310d90affd4e1a4a7328082ac4beb5461 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 25 Sep 2018 09:54:47 +0100 Subject: Add a B flag to mark windows bigger than the client. --- cmd-select-pane.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cmd-select-pane.c') diff --git a/cmd-select-pane.c b/cmd-select-pane.c index 5cec82f2..34b0a3c3 100644 --- a/cmd-select-pane.c +++ b/cmd-select-pane.c @@ -58,6 +58,7 @@ static void cmd_select_pane_redraw(struct window *w) { struct client *c; + struct window *loop; /* * Redraw entire window if it is bigger than the client (the @@ -67,15 +68,15 @@ cmd_select_pane_redraw(struct window *w) TAILQ_FOREACH(c, &clients, entry) { if (c->session == NULL) continue; - if (c->session->curw->window == w && tty_window_bigger(&c->tty)) + loop = c->session->curw->window; + if (loop == w && tty_window_bigger(&c->tty, w)) server_redraw_client(c); else { - if (c->session->curw->window == w) + if (loop == w) c->flags |= CLIENT_REDRAWBORDERS; if (session_has(c->session, w)) c->flags |= CLIENT_REDRAWSTATUS; } - } } -- cgit