Skip to content

Commit

Permalink
Added WM_NAME as _NET_WM_NAME fallback (older apps)
Browse files Browse the repository at this point in the history
Separated Props and Structs as submodules
Improved performance while maintaining multi-display, multi-screen and multi-root support
  • Loading branch information
Kalmat committed Sep 15, 2023
1 parent 892be77 commit 317ea39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file modified dist/EWMHlib-0.0.1-py3-none-any.whl
Binary file not shown.
2 changes: 2 additions & 0 deletions src/ewmhlib/_ewmhlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,8 @@ def getName(self) -> Optional[str]:
# Thanks to cedricscheepers - https://github.com/cedricscheepers for pointing out this issue
ret: Optional[Xlib.protocol.request.GetProperty] = self.getProperty(Window.NAME)
res: Optional[Union[List[int], List[str]]] = getPropertyValue(ret, display=self.display)
# Some (older) apps do not set _NET_WM_NAME property, but WM_NAME. Using it as fallback
# Thans to ReaperMantis - https://github.com/ReaperMantis for finding a solution!
if res:
return str(res[0])
ret = self.getProperty(Window.LEGACY_NAME)
Expand Down

0 comments on commit 317ea39

Please sign in to comment.