forked from e16/e16
1
0
Fork 0

ewins: Fix gravity related placement issue

Attempt to fix placement issues (walking window) for windows with
non-NorthWest gravity when withdrawn/shown.
This commit is contained in:
Kim Woelders 2023-09-11 19:58:20 +02:00
parent 50356c8b12
commit 2fdf689d90
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}