diff options
author | nicm <nicm> | 2017-05-28 19:00:52 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-05-28 19:00:52 +0000 |
commit | 385bf084a5db9f889352aae5f55d7a52b23afc72 (patch) | |
tree | 6e5e68719721956cbdd8f21edd3ef1ccfd4ce611 | |
parent | 91d202da7ed9d63b481e03e02567775d87a90e0e (diff) | |
download | rtmux-385bf084a5db9f889352aae5f55d7a52b23afc72.tar.gz rtmux-385bf084a5db9f889352aae5f55d7a52b23afc72.tar.bz2 rtmux-385bf084a5db9f889352aae5f55d7a52b23afc72.zip |
Also recalculate session sizes when refreh-client -C is used. GitHub
issue 947.
-rw-r--r-- | cmd-refresh-client.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd-refresh-client.c b/cmd-refresh-client.c index 6af3362b..df1d2135 100644 --- a/cmd-refresh-client.c +++ b/cmd-refresh-client.c @@ -67,10 +67,9 @@ 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)) { - c->flags |= CLIENT_SIZECHANGED; - recalculate_sizes(); - } + 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); |