aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwl.c3
1 files changed, 1 insertions, 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 */