mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
render: resize: adjust user configured size for CSDs
This commit is contained in:
parent
66decac16b
commit
3228758951
1 changed files with 5 additions and 0 deletions
5
render.c
5
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue