From 0d1ca4663ca62329e1e171053ceb35bbc71ec30a Mon Sep 17 00:00:00 2001 From: Dima Krasner Date: Sat, 8 Oct 2022 13:20:34 +0000 Subject: [PATCH] allow moveresize() while the left mouse button is pressed Fixes: https://github.com/djpohly/dwl/issues/319 --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index fc8f7b2..3fdef90 100644 --- a/dwl.c +++ b/dwl.c @@ -1569,7 +1569,7 @@ motionrelative(struct wl_listener *listener, void *data) void moveresize(const Arg *arg) { - if (cursor_mode != CurNormal) + if (cursor_mode != CurNormal && cursor_mode != CurPressed) return; xytonode(cursor->x, cursor->y, NULL, &grabc, NULL, NULL, NULL); if (!grabc || client_is_unmanaged(grabc))