From 88b8813bd7e00c98345ff1fb5d85e01b3dbec0be Mon Sep 17 00:00:00 2001 From: limbe-osc Date: Sat, 6 Aug 2016 07:08:01 +0800 Subject: [PATCH] bug fix --- i3pystatus/window_title.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/i3pystatus/window_title.py b/i3pystatus/window_title.py index b8e5e27..87f02b8 100644 --- a/i3pystatus/window_title.py +++ b/i3pystatus/window_title.py @@ -42,7 +42,7 @@ class WindowTitle(Module): self.output = { "full_text": self.title, "color": self.color, - } + } # we are listening to i3 events in a separate thread t = Thread(target=self._loop) @@ -57,8 +57,7 @@ class WindowTitle(Module): # don't show window title when the window already has means # to display it if not self.always_show and ( - w.border == "normal" or - w.type == "workspace" + w.border == "normal" or w.type == "workspace" or (p.layout in ("stacked", "tabbed") and len(p.nodes) > 1)): return self.empty_title else: