diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/autoname-workspaces.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/autoname-workspaces.py b/contrib/autoname-workspaces.py index 297d91b2..2b634eee 100755 --- a/contrib/autoname-workspaces.py +++ b/contrib/autoname-workspaces.py | |||
@@ -31,7 +31,7 @@ def icon_for_window(window): | |||
31 | else: | 31 | else: |
32 | # xwayland support | 32 | # xwayland support |
33 | class_name = window.window_class | 33 | class_name = window.window_class |
34 | if len(class_name) > 0: | 34 | if class_name is not None and len(class_name) > 0: |
35 | class_name = class_name.lower() | 35 | class_name = class_name.lower() |
36 | if class_name in WINDOW_ICONS: | 36 | if class_name in WINDOW_ICONS: |
37 | return WINDOW_ICONS[class_name] | 37 | return WINDOW_ICONS[class_name] |