aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monsterwm.c b/monsterwm.c
index e656ab3..69b1baf 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -564,14 +564,14 @@ void mousemotion(const Arg *arg) {
if (XGrabPointer(dis, root, False, BUTTONMASK|PointerMotionMask, GrabModeAsync,
GrabModeAsync, None, None, CurrentTime) != GrabSuccess) return;
int x, y, z, xw, yh; unsigned int v; Window w;
+ XWarpPointer(dis, None, current->win, 0, 0, 0, 0, wa.width, wa.height);
XQueryPointer(dis, root, &w, &w, &x, &y, &z, &z, &v);
XEvent ev;
do {
XMaskEvent(dis, BUTTONMASK|PointerMotionMask|SubstructureRedirectMask, &ev);
switch (ev.type) {
- case ConfigureRequest:
- case MapRequest:
+ case ConfigureRequest: case MapRequest:
events[ev.type](&ev);
break;
case MotionNotify: