From e853098f4608d5fa457bc873bb4fcfb23d6c2396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 7 Apr 2021 19:04:25 +0200 Subject: [PATCH] osc: reset background alpha when resetting the background color --- osc.c | 1 + terminal.c | 1 + 2 files changed, 2 insertions(+) diff --git a/osc.c b/osc.c index 0aa75247..157272d9 100644 --- a/osc.c +++ b/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; diff --git a/terminal.c b/terminal.c index c6b4705c..fd206090 100644 --- a/terminal.c +++ b/terminal.c @@ -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;