From 9c90513a74a705d60bc9769f25675e0c3fd5ed83 Mon Sep 17 00:00:00 2001 From: leukipp Date: Fri, 2 Aug 2024 09:39:57 +0200 Subject: [PATCH] fix: wrong window position for certain applications #59 --- store/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/client.go b/store/client.go index b594eb8..69aa277 100644 --- a/store/client.go +++ b/store/client.go @@ -545,7 +545,7 @@ func GetInfo(w xproto.Window) *Info { Top: int(ext[2]), Bottom: int(ext[3]), }, - AdjPos: !common.AllZero(extNet) && (mhints.Decoration > 1 || nhints.WinGravity > 1) || !common.AllZero(extGtk), + AdjPos: (nhints.WinGravity > 1 && !common.AllZero(extNet)) || !common.AllZero(extGtk), AdjSize: !common.AllZero(extNet) || !common.AllZero(extGtk), AdjRestore: !common.AllZero(extGtk), }