diff options
author | nicm <nicm> | 2020-05-16 15:34:08 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-05-16 15:34:08 +0000 |
commit | 9605b080f6c942ff2e51a2ba538cccc91c91c161 (patch) | |
tree | a2cb5c229410d3c8b749a1e0da2716494c08445c /status.c | |
parent | 379ca54c80837d09dff53ffa7b9ea3b80d87096b (diff) | |
download | rtmux-9605b080f6c942ff2e51a2ba538cccc91c91c161.tar.gz rtmux-9605b080f6c942ff2e51a2ba538cccc91c91c161.tar.bz2 rtmux-9605b080f6c942ff2e51a2ba538cccc91c91c161.zip |
Do not hoke into struct window_pane from the tty code and instead set
everything up in tty_ctx. Provide a way to initialize the tty_ctx from a
callback and use it to let popups draw directly through input_parse in
the same way as panes do, rather than forcing a full redraw on every
change.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -372,7 +372,7 @@ status_redraw(struct client *c) screen_resize(&sl->screen, width, lines, 0); changed = force = 1; } - screen_write_start(&ctx, NULL, &sl->screen); + screen_write_start(&ctx, &sl->screen); /* Write the status lines. */ o = options_get(s->options, "status-format"); @@ -509,7 +509,7 @@ status_message_redraw(struct client *c) style_apply(&gc, s->options, "message-style", ft); format_free(ft); - screen_write_start(&ctx, NULL, sl->active); + screen_write_start(&ctx, sl->active); screen_write_fast_copy(&ctx, &sl->screen, 0, 0, c->tty.sx, lines - 1); screen_write_cursormove(&ctx, 0, lines - 1, 0); for (offset = 0; offset < c->tty.sx; offset++) @@ -664,7 +664,7 @@ status_prompt_redraw(struct client *c) if (start > c->tty.sx) start = c->tty.sx; - screen_write_start(&ctx, NULL, sl->active); + screen_write_start(&ctx, sl->active); screen_write_fast_copy(&ctx, &sl->screen, 0, 0, c->tty.sx, lines - 1); screen_write_cursormove(&ctx, 0, lines - 1, 0); for (offset = 0; offset < c->tty.sx; offset++) |