aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-12-22 19:21:46 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-12-22 19:21:46 +0000
commit521bd84a99ee154af2866511774c1f6c8c2a2467 (patch)
treeaafbbf4a348608d6422ff98f37789ada43ef9696 /render.c
parentmeson: generate-version: use CURRENT_SOURCE_DIR instead of SOURCE_ROOT (diff)
config: csd.border_width now always reflects the full/total width
Diffstat (limited to 'render.c')
-rw-r--r--render.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/render.c b/render.c
index 34a4da3a..ca411c14 100644
--- a/render.c
+++ b/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;