allow moveresize() while the left mouse button is pressed

Fixes: https://github.com/djpohly/dwl/issues/319
This commit is contained in:
Dima Krasner 2022-10-08 13:20:34 +00:00 committed by Leonardo Hernández Hernández
parent f6820a6c29
commit 0d1ca4663c
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 1 additions and 1 deletions

2
dwl.c
View File

@ -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))