summaryrefslogtreecommitdiffstats
path: root/cmd-new-session.c
diff options
context:
space:
mode:
authornicm <nicm>2019-03-12 13:56:30 +0000
committernicm <nicm>2019-03-12 13:56:30 +0000
commit028f9d1d879255f9dbb80df53f44d37736b68e00 (patch)
treebf4923dec5a310116d6171b780ce21a7b3d65d51 /cmd-new-session.c
parent303d20a758a2779f76854b6df10f8764e44fc407 (diff)
Fix resizing of control clients, should be ignored until SIZECHANGED flag set.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c
index 162a50bd..e1be350b 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -222,9 +222,7 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item)
if (!detached && !is_control) {
sx = c->tty.sx;
sy = c->tty.sy;
- if (!is_control &&
- sy > 0 &&
- options_get_number(global_s_options, "status"))
+ if (sy > 0 && options_get_number(global_s_options, "status"))
sy--;
} else {
value = options_get_string(global_s_options, "default-size");