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 21, 2023
1 parent 4670ffd commit eaf2261
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified dist/PyWinCtl-0.0.44-py3-none-any.whl
Binary file not shown.
5 changes: 3 additions & 2 deletions src/pywinctl/_pywinctl_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,9 @@ def getClientFrame(self) -> Rect:
h = h - (_net_extents[2] + _net_extents[3])
ret = Rect(x, y, x + w, y + h)
else:
titleHeight, borderWidth = self._getBorderSizes()
ret = Rect(x + borderWidth, y + titleHeight, x + w - borderWidth, y + h - borderWidth)
# titleHeight, borderWidth = self._getBorderSizes()
# ret = Rect(x + borderWidth, y + titleHeight, x + w - borderWidth, y + h - borderWidth)
ret = Rect(x, y, x + w, y + h)
return ret

def __repr__(self):
Expand Down

0 comments on commit eaf2261

Please sign in to comment.