removed explicit warp in movemouse
This commit is contained in:
parent
e3da222c1e
commit
43bb77a569
5
dwm.c
5
dwm.c
|
@ -980,11 +980,6 @@ movemouse(const Arg *arg) {
|
||||||
None, cursor[CurMove], CurrentTime) != GrabSuccess)
|
None, cursor[CurMove], CurrentTime) != GrabSuccess)
|
||||||
return;
|
return;
|
||||||
XQueryPointer(dpy, root, &dummy, &dummy, &x1, &y1, &di, &di, &dui);
|
XQueryPointer(dpy, root, &dummy, &dummy, &x1, &y1, &di, &di, &dui);
|
||||||
if(x1 < c->x || x1 > c->x + c->w || y1 < c->y || y1 > c->y + c->h) {
|
|
||||||
XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, 0, 0);
|
|
||||||
x1 = c->x + 1;
|
|
||||||
y1 = c->y + 1;
|
|
||||||
}
|
|
||||||
for(;;) {
|
for(;;) {
|
||||||
XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev);
|
XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev);
|
||||||
switch (ev.type) {
|
switch (ev.type) {
|
||||||
|
|
Loading…
Reference in a new issue