diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-26 14:27:40 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-26 14:27:40 +0000 |
| commit | 3228758951ea407886042fa07f586d10084e3a8f (patch) | |
| tree | e2f3296af0595471fe76ec91ca5701bb56fe188b /render.c | |
| parent | wayland: document what FOOT_CSD_OUTSIDE does (diff) | |
render: resize: adjust user configured size for CSDs
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |
