Fix dynamically changing the background color in a window causing rendering artifacts in the tab bar

Fixes #3595
This commit is contained in:
Kovid Goyal 2021-05-09 11:54:51 +05:30
parent 80c13fa75b
commit 355808b0f6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
``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]
----------------------

View File

@ -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: