Use empty string as window name, when window is undefined or window name contains workspace number.
@@ -51,8 +51,8 @@ class Py3status:
def window_title(self):
window = find_focused(i3.get_tree())
- if window['name'] is None:
- window['name'] = ''
+ if not window or window.get('name') is None or str(window.get('num')) == window.get('name'):
+ window = {'name': ''}
transformed = False
