From 6da79ab6145ab638b4217089d7389f53a3b6e533 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 25 Oct 2021 12:40:36 +0530 Subject: [PATCH] Reset draw data default bg when background is changed --- kitty/tab_bar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/tab_bar.py b/kitty/tab_bar.py index c8b7806d7..f89193a0d 100644 --- a/kitty/tab_bar.py +++ b/kitty/tab_bar.py @@ -475,6 +475,8 @@ class TabBar: if val is None: val = color_as_int(opts.background) self.draw_data = self.draw_data._replace(default_bg=color_from_int(val)) + elif not opts.tab_bar_background: + self.draw_data = self.draw_data._replace(default_bg=opts.background) bg = spec.get('tab_bar_background', False) if bg is None: bg = color_as_int(opts.background)