From 622c4bc0d6d2f40bd0baf2acb01579bbc8095237 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Wed, 10 Jun 2020 11:22:48 +0200 Subject: [PATCH] EWMH window float patch: Floating window x, y coordinates may be negative in a multi-monitor setup --- dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwm.c b/dwm.c index b49c6d3..af37fc6 100644 --- a/dwm.c +++ b/dwm.c @@ -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;