arrange: Keep upper left corner on screen when centering window

This commit is contained in:
Kim Woelders 2022-06-13 07:57:48 +02:00
parent 277d252ffb
commit 5e7c2a034a
1 changed files with 4 additions and 0 deletions

View File

@ -468,6 +468,10 @@ ArrangeEwinCentered(EWin * ewin)
int x, y;
ArrangeEwinCenteredXY(ewin, &x, &y);
if (x < 0)
x = 0;
if (y < 0)
y = 0;
EwinMove(ewin, x, y, 0);
}