diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-09-25 09:54:47 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-09-25 09:54:47 +0100 |
commit | b4e74f4310d90affd4e1a4a7328082ac4beb5461 (patch) | |
tree | 4fd6e6e2e2a371a24a6e375d20c9ca2fbfbefa07 /cmd-select-pane.c | |
parent | 26d73a7736bf6c8560f90c7ae75963a02b4c9ba9 (diff) | |
download | rtmux-b4e74f4310d90affd4e1a4a7328082ac4beb5461.tar.gz rtmux-b4e74f4310d90affd4e1a4a7328082ac4beb5461.tar.bz2 rtmux-b4e74f4310d90affd4e1a4a7328082ac4beb5461.zip |
Add a B flag to mark windows bigger than the client.
Diffstat (limited to 'cmd-select-pane.c')
-rw-r--r-- | cmd-select-pane.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; } - } } |