From ea9204f88501a59b7096f8ca4e9f161cf3664a64 Mon Sep 17 00:00:00 2001 From: Leonard Bruns Date: Fri, 6 Oct 2023 16:16:14 +0200 Subject: [PATCH] Fix client frame computation accounting for PyWinBox change --- src/pywinctl/_pywinctl_linux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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