aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDima Krasner <dima@dimakrasner.com>2022-10-08 13:20:34 +0000
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-10-08 12:31:29 -0500
commit0d1ca4663ca62329e1e171053ceb35bbc71ec30a (patch)
tree1f8c8f3e3f7b3444a106b7410c150c4a7e2e4b98
parentf6820a6c29b6bcb9a14166793d7f1fba2f98444e (diff)
allow moveresize() while the left mouse button is pressed
Fixes: https://github.com/djpohly/dwl/issues/319
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
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))