From 3c83e0cfb8cfb20cab2775b8da0925fb26a35678 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Tue, 30 Mar 2021 13:56:04 -0500 Subject: don't move/resize if already moving/resizing Fixes #102. The "ideal" behavior might be to ignore buttons other than the one being used for the action, but this is super-simple and still seems reasonable. --- dwl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dwl.c b/dwl.c index ead6ec2..54cfcfe 100644 --- a/dwl.c +++ b/dwl.c @@ -1454,8 +1454,7 @@ motionrelative(struct wl_listener *listener, void *data) void moveresize(const Arg *arg) { - grabc = xytoclient(cursor->x, cursor->y); - if (!grabc) + if (cursor_mode != CurNormal || !(grabc = xytoclient(cursor->x, cursor->y))) return; /* Float the window and tell motionnotify to grab it */ -- cgit v1.2.3