EWMH window float patch: Floating window x, y coordinates may be negative in a multi-monitor setup

This commit is contained in:
bakkeby 2020-06-10 11:22:48 +02:00
parent 45247a14bc
commit 622c4bc0d6

2
dwm.c
View File

@ -3947,7 +3947,7 @@ updatewindowtype(Client *c)
#endif //EWMH_WINDOWS_FLOAT_PATCH
{
#if CENTER_PATCH
if (c->x == c->mon->mx && c->y == c->mon->my)
if (c->x <= c->mon->mx && c->y <= c->mon->my)
c->iscentered = 1;
#endif // CENTER_PATCH
c->isfloating = 1;