Tidy up server_client_check_redraw. Get rid of the bitmask tracking

panes which want redraw for deferred clients - if they are deferred then
they can just have a full redraw instead. Also return earlier if no
redraw is actually needed, and improve the comments.
This commit is contained in:
nicm
2026-06-17 13:22:48 +00:00
parent 1ba8fa6f04
commit 3485e1c089
3 changed files with 64 additions and 112 deletions

View File

@@ -148,10 +148,10 @@ screen_write_set_client_cb(struct tty_ctx *ttyctx, struct client *c)
if (wp->flags & (PANE_REDRAW|PANE_DROP))
return (-1);
if (c->flags & CLIENT_REDRAWPANES) {
if (c->flags & CLIENT_REDRAWWINDOW) {
/*
* Redraw is already deferred to redraw another pane - redraw
* this one also when that happens.
* Redraw is already deferred to redraw the window - redraw this
* one also when that happens.
*/
log_debug("%s: adding %%%u to deferred redraw", __func__,
wp->id);