mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Fixing warp barmodules compatibility ref. #37
This commit is contained in:
parent
e4e3a4463d
commit
8ec80be756
@ -13,8 +13,11 @@ warp(const Client *c)
|
||||
y > c->y - c->bw &&
|
||||
x < c->x + c->w + c->bw*2 &&
|
||||
y < c->y + c->h + c->bw*2) ||
|
||||
(y > c->mon->by && y < c->mon->by + bh) ||
|
||||
(c->mon->topbar && !y))
|
||||
x < c->mon->wx ||
|
||||
x > c->mon->wx + c->mon->ww ||
|
||||
y < c->mon->wy ||
|
||||
y > c->mon->wy + c->mon->wh
|
||||
)
|
||||
return;
|
||||
|
||||
XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w / 2, c->h / 2);
|
||||
|
Loading…
Reference in New Issue
Block a user