From 3228758951ea407886042fa07f586d10084e3a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 26 Feb 2020 15:27:40 +0100 Subject: [PATCH] render: resize: adjust user configured size for CSDs --- render.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/render.c b/render.c index 6f71ae30..a752dd8e 100644 --- a/render.c +++ b/render.c @@ -1163,6 +1163,11 @@ maybe_resize(struct terminal *term, int width, int height, bool force) if (width == 0 && height == 0) { width = term->conf->width; height = term->conf->height; + +#if FOOT_CSD_OUTSIDE + width -= 2 * csd_border_size; + height -= 2 * csd_border_size + csd_title_size; +#endif } width *= scale;