mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-24 01:40:12 -05:00
config: csd.border_width now always reflects the full/total width
This commit is contained in:
parent
9df537a110
commit
521bd84a99
3 changed files with 13 additions and 5 deletions
8
render.c
8
render.c
|
|
@ -1528,8 +1528,7 @@ get_csd_data(const struct terminal *term, enum csd_surface surf_idx)
|
|||
|
||||
/* Only title bar is rendered in maximized mode */
|
||||
const int border_width = !term->window->is_maximized
|
||||
? max(term->conf->csd.border_width,
|
||||
term->conf->csd.border_width_visible) * term->scale : 0;
|
||||
? term->conf->csd.border_width * term->scale : 0;
|
||||
|
||||
const int title_height = term->window->is_fullscreen
|
||||
? 0
|
||||
|
|
@ -1756,10 +1755,11 @@ render_csd_border(struct terminal *term, enum csd_surface surf_idx,
|
|||
* The “visible” border.
|
||||
*/
|
||||
|
||||
int bwidth = max(term->conf->csd.border_width,
|
||||
term->conf->csd.border_width_visible); /* Full border size */
|
||||
int bwidth = term->conf->csd.border_width;
|
||||
int vwidth = term->conf->csd.border_width_visible; /* Visibls size */
|
||||
|
||||
xassert(bwidth >= vwidth);
|
||||
|
||||
if (vwidth > 0) {
|
||||
|
||||
const struct config *conf = term->conf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue