diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-24 11:56:44 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-24 11:56:44 +0100 |
commit | ae73fd363b23ab3b20e8b8d45a8302ac38ff23d7 (patch) | |
tree | f14c22e702cfa2afef14abbc2eb5f9ac33cb229d | |
parent | bb107d297981d2d9eb1e92932fd13eddefa5a704 (diff) | |
download | rtmux-ae73fd363b23ab3b20e8b8d45a8302ac38ff23d7.tar.gz rtmux-ae73fd363b23ab3b20e8b8d45a8302ac38ff23d7.tar.bz2 rtmux-ae73fd363b23ab3b20e8b8d45a8302ac38ff23d7.zip |
Do not redraw at all if nothing has changed.
-rw-r--r-- | screen-redraw.c | 3 | ||||
-rw-r--r-- | tty-features.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/screen-redraw.c b/screen-redraw.c index 8e74fe97..30344fe5 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -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); diff --git a/tty-features.c b/tty-features.c index 93b90d45..531cf97c 100644 --- a/tty-features.c +++ b/tty-features.c @@ -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" |