Do not redraw at all if nothing has changed.

pull/2195/head
Nicholas Marriott 2020-04-24 11:56:44 +01:00
parent bb107d2979
commit ae73fd363b
2 changed files with 4 additions and 1 deletions

View File

@ -434,6 +434,9 @@ screen_redraw_screen(struct client *c)
return;
flags = screen_redraw_update(c, c->flags);
if ((flags & CLIENT_ALLREDRAWFLAGS) == 0)
return;
screen_redraw_set_context(c, &ctx);
tty_sync_start(&c->tty);

View File

@ -328,7 +328,7 @@ tty_default_features(int *feat, const char *name, u_int version)
.features = TTY_FEATURES_BASE_MODERN_XTERM ",ccolour,cstyle,focus,overline,usstyle"
},
{ .name = "rxvt-unicode",
.features = "256,title"
.features = "256,ccolour,cstyle,title"
},
{ .name = "iTerm2",
.features = TTY_FEATURES_BASE_MODERN_XTERM ",cstyle,margins,sync"