Commit 9e8fba1
authored
fix(xlib): handle None return from get_wm_name() on KDE Plasma (#115)
When no WM_NAME property exists on a window (common on KDE Plasma with
Fedora), window.get_wm_name() returns None. The isinstance(r, str)
check doesn't catch None, so it falls through to r.decode("latin1")
which raises AttributeError: 'NoneType' object has no attribute 'decode'.
Add a None guard that returns "unknown", matching the existing error
handling pattern in the function.
Fixes #1141 parent c80aa5a commit 9e8fba1
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
0 commit comments