Skip to content

Commit

Permalink
Merge pull request #79 from roym899/fix_gnome_window_box
Browse files Browse the repository at this point in the history
Fix client frame computation accounting for PyWinBox change
  • Loading branch information
Kalmat authored Oct 11, 2023
2 parents 8337e37 + ea9204f commit d690a52
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 d690a52

Please sign in to comment.