summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-08-19 20:13:07 +0000
committernicm <nicm@openbsd.org>2018-08-19 20:13:07 +0000
commit2c46c1fbbb58def2042c59a83b549cef28f2bb59 (patch)
tree2f1872d42c34828d12a3c3520ae5c0342c01b78f /usr.bin/tmux/server-client.c
parentDon't leak a strdup()'ed string on error in do_accept(). (diff)
downloadwireguard-openbsd-2c46c1fbbb58def2042c59a83b549cef28f2bb59.tar.xz
wireguard-openbsd-2c46c1fbbb58def2042c59a83b549cef28f2bb59.zip
Add a flag to force redrawing of the status line even if the content
hasn't changed, needed for resizing.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 87062ed7ee6..804ed58761d 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.256 2018/08/19 16:45:03 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.257 2018/08/19 20:13:07 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1319,6 +1319,12 @@ server_client_check_redraw(struct client *c)
if (c->flags & (CLIENT_CONTROL|CLIENT_SUSPENDED))
return;
+ if (c->flags & CLIENT_ALLREDRAWFLAGS) {
+ log_debug("%s: redraw%s%s%s", c->name,
+ (c->flags & CLIENT_REDRAWWINDOW) ? " window" : "",
+ (c->flags & CLIENT_REDRAWSTATUS) ? " status" : "",
+ (c->flags & CLIENT_REDRAWBORDERS) ? " borders" : "");
+ }
/*
* If there is outstanding data, defer the redraw until it has been