From 479e6afb2a1a8541e9d89e5a508819f073815e70 Mon Sep 17 00:00:00 2001 From: ZyX Date: Fri, 20 Feb 2015 16:39:08 +0300 Subject: [PATCH] Do not recreate layout if not needed --- powerline/bindings/qtile/widget.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/powerline/bindings/qtile/widget.py b/powerline/bindings/qtile/widget.py index 366ba807..92e3a27e 100644 --- a/powerline/bindings/qtile/widget.py +++ b/powerline/bindings/qtile/widget.py @@ -43,6 +43,9 @@ class PowerlineTextBox(TextBox): def _configure(self, qtile, bar): super(PowerlineTextBox, self)._configure(qtile, bar) + if self.layout.markup: + # QTile-0.9.1: no need to recreate layout or run timer_setup + return self.layout = self.drawer.textlayout( self.text, self.foreground,