From f434933824da23ced65e4134d6cb76c99b49897e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 6 Mar 2020 19:13:10 +0100 Subject: [PATCH] render: CSD: use *default* foreground, not current foreground Applications may temporarily change the foreground color. Don't use this when rendering the CSD title bar - use the default foreground (i.e the default default one, or the one configured by the user in footrc). --- render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render.c b/render.c index bccd870a..fa929b37 100644 --- a/render.c +++ b/render.c @@ -748,7 +748,7 @@ render_csd_title(struct terminal *term) struct buffer *buf = shm_get_buffer( term->wl->shm, info.width, info.height, cookie); - uint32_t _color = term->colors.fg; + uint32_t _color = term->colors.default_fg; uint16_t alpha = 0xffff; if (term->conf->csd.color.title_set) {