Skip to content

Commit

Permalink
ALL: Included PyWinBox module which hopefully better handles multi-mo…
Browse files Browse the repository at this point in the history
…nitor setups (macOS tests pending)

LINUX: Fixed getClientFrame() (thanks to roym899), removed ewmh and pynput dependencies
WINDOWS: Fixed getAllWindows() not returning all relevant windows (thanks to Xenolphthalein)
MACOS: Fixed 'missing value' in window titles and app names (thanks to yjmd2222), fixed getClientFrame() to be invoked from non-main threads (thanks to super-iby)
  • Loading branch information
Kalmat committed Aug 23, 2023
1 parent 7e338b3 commit 94ec877
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Linux:
- acceptInput()
- Test in all cases: moving, resizing, remap, close, ...
- Is it possible to make the window completely transparent to input (click-thru) in GNOME?
- Find a smarter (xlib or similar) way to get title bar height

Windows:
- win32gui.GetMenu() not working in Windows 11 (?!?!?!?!)
Expand Down
Binary file modified dist/PyWinCtl-0.0.44-py3-none-any.whl
Binary file not shown.
9 changes: 3 additions & 6 deletions src/ewmhlib/_ewmhlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,9 @@ class RootWindow:
def __init__(self, root: Optional[Union[XWindow, int]] = None):

if root and isinstance(root, XWindow):
self.id: int = root.id
elif isinstance(root, int):
self.id = root
else:
raise ValueError
self.display, self.screen, self.root = getDisplayFromRoot(self.id)
root = root.id
self.display, self.screen, self.root = getDisplayFromRoot(cast(Optional[int], root))
self.id = self.root.id
self.wmProtocols = self._WmProtocols(self.display, self.root)

def getProperty(self, prop: Union[str, int], prop_type: int = Xlib.X.AnyPropertyType) -> Optional[Xlib.protocol.request.GetProperty]:
Expand Down

0 comments on commit 94ec877

Please sign in to comment.