mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
osc: reset background alpha when resetting the background color
This commit is contained in:
parent
713a53fa3e
commit
e853098f46
2 changed files with 2 additions and 0 deletions
1
osc.c
1
osc.c
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue