aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-03 17:18:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-03 17:18:59 +0000
commitc90d70b2bfc93fa7bf58f9e8805a55b191828886 (patch)
treed03f1643ef88f283fa3e4c4a5bfe934ba0430e52 /render.c
parentrender: csd: maximize: change default color to a lighter green (diff)
config: CSD borders are always invisible
That is, remove all configuration options and always draw them fully transparent.
Diffstat (limited to 'render.c')
-rw-r--r--render.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/render.c b/render.c
index 52c80e08..b422ef93 100644
--- a/render.c
+++ b/render.c
@@ -779,17 +779,7 @@ render_csd_border(struct terminal *term, enum csd_surface surf_idx)
struct buffer *buf = shm_get_buffer(
term->wl->shm, info.width, info.height, cookie);
- uint32_t _color = 0;
- uint16_t alpha = 0;
-
- if (term->conf->csd.color.border_set) {
- _color = term->conf->csd.color.border;
- alpha = _color >> 24 | (_color >> 24 << 8);
- }
-
- pixman_color_t color = color_hex_to_pixman_with_alpha(_color, alpha);
- if (!term->visual_focus)
- pixman_color_dim(&color);
+ pixman_color_t color = color_hex_to_pixman_with_alpha(0, 0);
render_csd_part(term, surf, buf, info.width, info.height, &color);
csd_commit(term, surf, buf);
}