mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
render: take (visible) CSD border size into account when setting initial size
This commit is contained in:
parent
f9103d4381
commit
979f48a62f
1 changed files with 5 additions and 0 deletions
5
render.c
5
render.c
|
|
@ -3581,6 +3581,11 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
|
|||
if (wayl_win_csd_titlebar_visible(term->window))
|
||||
height -= term->conf->csd.title_height;
|
||||
|
||||
if (wayl_win_csd_borders_visible(term->window)) {
|
||||
height -= 2 * term->conf->csd.border_width_visible;
|
||||
width -= 2 * term->conf->csd.border_width_visible;
|
||||
}
|
||||
|
||||
width *= scale;
|
||||
height *= scale;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue