render: resize: adjust user configured size for CSDs

This commit is contained in:
Daniel Eklöf 2020-02-26 15:27:40 +01:00
parent 66decac16b
commit 3228758951
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

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