osc: reset background alpha when resetting the background color

This commit is contained in:
Daniel Eklöf 2021-04-07 19:04:25 +02:00
parent 713a53fa3e
commit e853098f46
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 2 additions and 0 deletions

1
osc.c
View file

@ -824,6 +824,7 @@ osc_dispatch(struct terminal *term)
case 111: /* Reset default text background color */
LOG_DBG("resetting background color");
term->colors.bg = term->conf->colors.bg;
term->colors.alpha = term->conf->colors.alpha;
term_damage_view(term);
term_damage_margins(term);
break;

View file

@ -1682,6 +1682,7 @@ term_reset(struct terminal *term, bool hard)
fdm_del(term->fdm, term->blink.fd); term->blink.fd = -1;
term->colors.fg = term->conf->colors.fg;
term->colors.bg = term->conf->colors.bg;
term->colors.alpha = term->conf->colors.alpha;
memcpy(term->colors.table, term->conf->colors.table,
sizeof(term->colors.table));
term->origin = ORIGIN_ABSOLUTE;