From 51435353a17724bf32a63abe8d0825405f127333 Mon Sep 17 00:00:00 2001 From: elParaguayo Date: Wed, 25 Sep 2024 19:11:21 +0100 Subject: [PATCH] Fix TreeTab panel bug The TreeTab layout does not create a new Drawer object when the panel ratio is changed. This results in rendering issues. Fixes #4979 --- libqtile/layout/tree.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libqtile/layout/tree.py b/libqtile/layout/tree.py index df6e5d6394..6b01dcce47 100644 --- a/libqtile/layout/tree.py +++ b/libqtile/layout/tree.py @@ -735,7 +735,9 @@ def decrease_ratio(self): def _create_drawer(self, screen_rect): # Create a new drawer object if the screen is a different height # e.g. if moving between screens with different resolutions - if self._drawer is not None and self._drawer.height != screen_rect.height: + if self._drawer is not None and ( + self._drawer.height != screen_rect.height or self.panel_width != self._drawer.width + ): self._drawer.finalize() self._drawer = None