summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-04-18 06:52:36 +0000
committernicm <nicm@openbsd.org>2020-04-18 06:52:36 +0000
commit54f2766b195ea2d45e918c1ae485f581d91922be (patch)
treef95cba314d2cebf93f3c603aa23e52f64f05b34c
parentAdd a flag to protect against nested syncs and add some extra logging to (diff)
downloadwireguard-openbsd-54f2766b195ea2d45e918c1ae485f581d91922be.tar.xz
wireguard-openbsd-54f2766b195ea2d45e918c1ae485f581d91922be.zip
Only update mode when actually going to redraw something.
-rw-r--r--usr.bin/tmux/server-client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index ee48a88aa94..0017973967d 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.323 2020/04/18 06:20:50 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.324 2020/04/18 06:52:36 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1732,7 +1732,6 @@ server_client_check_redraw(struct client *c)
flags = tty->flags & (TTY_BLOCK|TTY_FREEZE|TTY_NOCURSOR);
tty->flags = (tty->flags & ~(TTY_BLOCK|TTY_FREEZE)) | TTY_NOCURSOR;
- tty_update_mode(tty, mode, NULL);
if (~c->flags & CLIENT_REDRAWWINDOW) {
/*
@@ -1742,13 +1741,14 @@ server_client_check_redraw(struct client *c)
TAILQ_FOREACH(wp, &c->session->curw->window->panes, entry) {
if (wp->flags & PANE_REDRAW) {
log_debug("%s: redrawing pane %%%u", __func__, wp->id);
- tty_update_mode(tty, tty->mode, NULL);
+ tty_update_mode(tty, mode, NULL);
screen_redraw_pane(c, wp);
}
}
}
if (c->flags & CLIENT_ALLREDRAWFLAGS) {
+ tty_update_mode(tty, mode, NULL);
if (options_get_number(s->options, "set-titles"))
server_client_set_title(c);
screen_redraw_screen(c);