summaryrefslogtreecommitdiffhomepage
path: root/patch/dragmfact.c
diff options
context:
space:
mode:
Diffstat (limited to 'patch/dragmfact.c')
-rw-r--r--patch/dragmfact.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/patch/dragmfact.c b/patch/dragmfact.c
index 1bcf38c..257b5c1 100644
--- a/patch/dragmfact.c
+++ b/patch/dragmfact.c
@@ -152,6 +152,11 @@ dragmfact(const Arg *arg)
if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
None, cursor[horizontal ? CurResizeVertArrow : CurResizeHorzArrow]->cursor, CurrentTime) != GrabSuccess)
return;
+
+ #if WARP_PATCH
+ ignore_warp = 1;
+ #endif // WARP_PATCH
+
XWarpPointer(dpy, None, root, 0, 0, 0, 0, px, py);
do {
@@ -217,6 +222,10 @@ dragmfact(const Arg *arg)
}
} while (ev.type != ButtonRelease);
+ #if WARP_PATCH
+ ignore_warp = 0;
+ #endif // WARP_PATCH
+
XUngrabPointer(dpy, CurrentTime);
while (XCheckMaskEvent(dpy, EnterWindowMask, &ev));
} \ No newline at end of file