aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c5
1 files changed, 5 insertions, 0 deletions
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;