Skip to content

Commit

Permalink
Fix client frame computation accounting for PyWinBox change
Browse files Browse the repository at this point in the history
  • Loading branch information
roym899 committed Oct 6, 2023
1 parent 464f64c commit ea9204f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pywinctl/_pywinctl_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ def getClientFrame(self) -> Rect:
if _net_extents and len(_net_extents) >= 4:
x = x + int(_net_extents[0])
y = y + int(_net_extents[2])
w = w - int(_net_extents[0]) + int(_net_extents[1])
h = h - int(_net_extents[2]) + int(_net_extents[3])
w = w - int(_net_extents[0]) - int(_net_extents[1])
h = h - int(_net_extents[2]) - int(_net_extents[3])
ret = Rect(x, y, x + w, y + h)
else:
# TODO: Find a way to find window title and borders sizes in GNOME
Expand Down

0 comments on commit ea9204f

Please sign in to comment.