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).
This commit is contained in:
Daniel Eklöf 2020-03-06 19:13:10 +01:00
parent 0dddb5d119
commit f434933824
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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) {