summaryrefslogtreecommitdiffstats
path: root/cmd-refresh-client.c
diff options
context:
space:
mode:
authornicm <nicm>2017-05-10 16:48:36 +0000
committernicm <nicm>2017-05-10 16:48:36 +0000
commit2dc9bfd93afd26b76dfdbf4a22338a5ef85893bf (patch)
treeb0298a256138214105c8481b4e0128b3aa861309 /cmd-refresh-client.c
parent9dc6946ebf359ec811cc4bb8b68ea9862b496369 (diff)
Prevent control clients from affecting the session size until they have
specified a size with refresh-client -C. Prompted by a different change with the same purpose from George Nachman.
Diffstat (limited to 'cmd-refresh-client.c')
-rw-r--r--cmd-refresh-client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd-refresh-client.c b/cmd-refresh-client.c
index 5190df89..6af3362b 100644
--- a/cmd-refresh-client.c
+++ b/cmd-refresh-client.c
@@ -67,8 +67,10 @@ cmd_refresh_client_exec(struct cmd *self, struct cmdq_item *item)
cmdq_error(item, "not a control client");
return (CMD_RETURN_ERROR);
}
- if (tty_set_size(&c->tty, w, h))
+ if (tty_set_size(&c->tty, w, h)) {
+ c->flags |= CLIENT_SIZECHANGED;
recalculate_sizes();
+ }
} else if (args_has(args, 'S')) {
c->flags |= CLIENT_STATUSFORCE;
server_status_client(c);