dekuNukem / duckyPad-profile-autoswitcher

MIT License
49 stars 12 forks source link

Fix for empty WM_NAME if UTF-8 #14

Closed traumweh closed 1 year ago

traumweh commented 1 year ago

window.get_wm_name() returns an empty string if the window property WM_NAME is not a STRING but a UTF8_STRING instance. This is an ongoing error in Xlib that afaik hasn't been fixed for years. So I added a fallback using the _NET_WM_NAME property.