mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
EWMH window float patch: Floating window x, y coordinates may be negative in a multi-monitor setup
This commit is contained in:
parent
45247a14bc
commit
622c4bc0d6
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user