diff --git a/libqtile/widget/groupbox.py b/libqtile/widget/groupbox.py index a698f9a9fa..9af320afc7 100644 --- a/libqtile/widget/groupbox.py +++ b/libqtile/widget/groupbox.py @@ -243,8 +243,6 @@ class GroupBox(_GroupBase): def __init__(self, **config): _GroupBase.__init__(self, **config) self.add_defaults(GroupBox.defaults) - if self.spacing is None: - self.spacing = self.margin_x self.clicked = None self.click = None @@ -258,6 +256,11 @@ def __init__(self, **config): ) self.add_callbacks(default_callbacks) + def _configure(self, qtile, bar): + _GroupBase._configure(self, qtile, bar) + if self.spacing is None: + self.spacing = self.margin_x + @property def groups(self): """