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

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