commit 96b2b3279c9dcd43128a987620eb623a8f67220f
parent a72aace66f47ab5794bd56d41d90f9fd741af1ae
Author: Louis Burda <quent.burda@gmail.com>
Date: Thu, 13 May 2021 12:11:59 +0200
Fixed calculation for POS_CENTER var
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winpreload.c b/winpreload.c
@@ -206,7 +206,7 @@ cleanup_xinerama:
wh = strtoul(value, NULL, 0);
} else if (!strcmp(key, "POS_CENTER")) {
wx = mx + (mw - ww) / 2.f;
- wy = my + (mh - ww) / 2.f;
+ wy = my + (mh - wh) / 2.f;
} else if (!strcmp(key, "DIALOG")) {
Atom atom;