diff --git a/src/pywinctl/_pywinctl_linux.py b/src/pywinctl/_pywinctl_linux.py index 3551d43..9401766 100644 --- a/src/pywinctl/_pywinctl_linux.py +++ b/src/pywinctl/_pywinctl_linux.py @@ -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