From ec2b39f04c905824ac759430c0ec8d691e4e3b69 Mon Sep 17 00:00:00 2001 From: Yves Hoppe Date: Fri, 26 May 2017 21:36:01 +0200 Subject: [PATCH] [Output] Only draw widget when full text is not empty --- bumblebee/output.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bumblebee/output.py b/bumblebee/output.py index 992eec6..42d09fd 100644 --- a/bumblebee/output.py +++ b/bumblebee/output.py @@ -93,6 +93,9 @@ class I3BarOutput(object): def draw(self, widget, module=None, engine=None): """Draw a single widget""" full_text = widget.full_text() + """Don't draw it when we only have an empty text""" + if full_text == "": + return padding = self._theme.padding(widget) prefix = self._theme.prefix(widget, padding) suffix = self._theme.suffix(widget, padding)