Use a pointer for the active screen in the status line instead of

copying them around all the time.
This commit is contained in:
nicm
2019-03-16 19:12:13 +00:00
parent 818fda0363
commit b588b1729a
4 changed files with 73 additions and 76 deletions

View File

@ -229,10 +229,7 @@ window_client_draw(__unused void *modedata, void *itemdata,
screen_write_hline(ctx, sx, 0, 0);
screen_write_cursormove(ctx, cx, cy + sy - 1, 0);
if (c->status.old_screen != NULL)
screen_write_fast_copy(ctx, c->status.old_screen, 0, 0, sx, 1);
else
screen_write_fast_copy(ctx, &c->status.screen, 0, 0, sx, 1);
screen_write_fast_copy(ctx, &c->status.screen, 0, 0, sx, 1);
}
static struct screen *