Fixing warp barmodules compatibility ref. #37

This commit is contained in:
bakkeby 2020-08-23 14:32:59 +02:00
parent e4e3a4463d
commit 8ec80be756

View File

@ -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);