mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
fix type error when class_name none
This commit is contained in:
parent
7a68a28475
commit
61df9eb62a
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ def icon_for_window(window):
|
||||||
else:
|
else:
|
||||||
# xwayland support
|
# xwayland support
|
||||||
class_name = window.window_class
|
class_name = window.window_class
|
||||||
if len(class_name) > 0:
|
if class_name is not None and len(class_name) > 0:
|
||||||
class_name = class_name.lower()
|
class_name = class_name.lower()
|
||||||
if class_name in WINDOW_ICONS:
|
if class_name in WINDOW_ICONS:
|
||||||
return WINDOW_ICONS[class_name]
|
return WINDOW_ICONS[class_name]
|
||||||
|
|
Loading…
Reference in a new issue