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
  • Loading branch information
Kalmat committed Sep 13, 2023
1 parent bc94af8 commit 154524b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified dist/EWMHlib-0.0.1-py3-none-any.whl
Binary file not shown.
6 changes: 3 additions & 3 deletions src/ewmhlib/_ewmhlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ def getDisplayFromRoot(rootId: Optional[int]) -> Tuple[Xlib.display.Display, Str
getScreenFromRoot = getDisplayFromRoot


def _getAllRootsInfo() -> List[List[Union[Xlib.display.Display, Struct, XWindow, Xlib.ext.randr.GetScreenResources]]]:
rootsInfo: List[List[Union[Xlib.display.Display, Struct, XWindow, Xlib.ext.randr.GetScreenResources]]] = []
def _getAllRootsInfo() -> List[List[Xlib.display.Display, Struct, XWindow, Xlib.ext.randr.GetScreenResources]]:
rootsInfo: List[List[Xlib.display.Display, Struct, XWindow, Xlib.ext.randr.GetScreenResources]] = [[]]
for display in getDisplays():
for i in range(display.screen_count()):
try:
Expand All @@ -164,7 +164,7 @@ def _getAllRootsInfo() -> List[List[Union[Xlib.display.Display, Struct, XWindow,
res: Xlib.ext.randr.GetScreenResources = randr.get_screen_resources(defaultRoot)
rootsInfo.append([defaultDisplay, defaultScreen, defaultRoot, res])
return rootsInfo
_allRootsInfo: List[List[Union[Xlib.display.Display, Struct, XWindow, Xlib.ext.randr.GetScreenResources]]] = _getAllRootsInfo()
_allRootsInfo: List[List[Xlib.display.Display, Struct, XWindow, Xlib.ext.randr.GetScreenResources]] = _getAllRootsInfo()


def getAllRootsInfo(forceUpdate: bool = False) -> List[
Expand Down

0 comments on commit 154524b

Please sign in to comment.