Fix resizing of control clients, should be ignored until SIZECHANGED flag set.

This commit is contained in:
nicm
2019-03-12 13:56:30 +00:00
parent 303d20a758
commit 028f9d1d87
4 changed files with 27 additions and 26 deletions

View File

@ -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");