This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository e16.

View the commit online.

commit 2fdf689d90ec51539c0329288132410805c0e497
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Mon Sep 11 19:58:20 2023 +0200

    ewins: Fix gravity related placement issue
    
    Attempt to fix placement issues (walking window) for windows with
    non-NorthWest gravity when withdrawn/shown.
---
 src/ewins.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/ewins.c b/src/ewins.c
index ccb25807..c8018a8c 100644
--- a/src/ewins.c
+++ b/src/ewins.c
@@ -1119,10 +1119,9 @@ EwinWithdraw(EWin * ewin, Win to)
 	const EImageBorder *pad = BorderGetSize(ewin->border);
 
 	/* Park the client window on the new root */
-	x = ewin->client.x;
-	y = ewin->client.y;
+	EwinGetPosition(ewin, pad->left, pad->top, ewin->icccm.grav, &x, &y);
 	ETranslateCoordinates(EwinGetClientWin(ewin), VROOT,
-			      -pad->left, -pad->top, &x, &y, NULL);
+			      -x, -y, &x, &y, NULL);
 	EReparentWindow(EwinGetClientWin(ewin), to, x, y);
 	HintsDelWindowHints(ewin);
      }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to