EWMH window float patch: Floating window x, y coordinates may be negative in a multi-monitor setup
This commit is contained in:
2
dwm.c
2
dwm.c
@@ -3947,7 +3947,7 @@ updatewindowtype(Client *c)
|
|||||||
#endif //EWMH_WINDOWS_FLOAT_PATCH
|
#endif //EWMH_WINDOWS_FLOAT_PATCH
|
||||||
{
|
{
|
||||||
#if CENTER_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;
|
c->iscentered = 1;
|
||||||
#endif // CENTER_PATCH
|
#endif // CENTER_PATCH
|
||||||
c->isfloating = 1;
|
c->isfloating = 1;
|
||||||
|
Reference in New Issue
Block a user