summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2019-10-19 12:40:42 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-11-27 20:47:27 +0000
commitb2fd161b071a7076d33119c0ff9aefdd548ff25f (patch)
tree6a7d71629ff82d320ec67b7b102682aa045e75d1
parentbbcb19917447b960b355ace88ce25c70cf2fd245 (diff)
Do not crash trying to fix layout size if only one cell, from Azat Khuzhin.
-rw-r--r--layout-custom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout-custom.c b/layout-custom.c
index e02eead3..7d731d19 100644
--- a/layout-custom.c
+++ b/layout-custom.c
@@ -210,7 +210,7 @@ layout_parse(struct window *w, const char *layout)
}
break;
}
- if (lc->sx != sx || lc->sy != sy) {
+ if (lc->type != LAYOUT_WINDOWPANE && (lc->sx != sx || lc->sy != sy)) {
log_debug("fix layout %u,%u to %u,%u", lc->sx, lc->sy, sx,sy);
layout_print_cell(lc, __func__, 0);
lc->sx = sx - 1; lc->sy = sy - 1;