diff --git a/docs/changelog.rst b/docs/changelog.rst index e89d3d029..032ae809f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -22,6 +22,9 @@ To update |kitty|, :doc:`follow the instructions `. ``KITTY_PIPE_DATA`` is also available via command line argument substitution (:iss:`3593`) +- Fix dynamically changing the background color in a window causing rendering + artifacts in the tab bar (:iss:`3595`) + 0.20.3 [2021-05-06] ---------------------- diff --git a/kitty/tab_bar.py b/kitty/tab_bar.py index a4cb98414..2f37d302e 100644 --- a/kitty/tab_bar.py +++ b/kitty/tab_bar.py @@ -303,8 +303,6 @@ class TabBar: self.draw_data = self.draw_data._replace(inactive_bg=color_from_int(spec['inactive_tab_background'])) if 'tab_bar_background' in spec: self.draw_data = self.draw_data._replace(default_bg=color_from_int(spec['tab_bar_background'])) - elif 'background' in spec and not self.opts.tab_bar_background: - self.draw_data = self.draw_data._replace(default_bg=color_from_int(spec['background'])) fg = spec.get('inactive_tab_foreground', color_as_int(self.opts.inactive_tab_foreground)) bg = spec.get('tab_bar_background', False) if bg is None: