allow moveresize() while the left mouse button is pressed
Fixes: https://github.com/djpohly/dwl/issues/319
This commit is contained in:
parent
f6820a6c29
commit
0d1ca4663c
2
dwl.c
2
dwl.c
|
@ -1569,7 +1569,7 @@ motionrelative(struct wl_listener *listener, void *data)
|
||||||
void
|
void
|
||||||
moveresize(const Arg *arg)
|
moveresize(const Arg *arg)
|
||||||
{
|
{
|
||||||
if (cursor_mode != CurNormal)
|
if (cursor_mode != CurNormal && cursor_mode != CurPressed)
|
||||||
return;
|
return;
|
||||||
xytonode(cursor->x, cursor->y, NULL, &grabc, NULL, NULL, NULL);
|
xytonode(cursor->x, cursor->y, NULL, &grabc, NULL, NULL, NULL);
|
||||||
if (!grabc || client_is_unmanaged(grabc))
|
if (!grabc || client_is_unmanaged(grabc))
|
||||||
|
|
Loading…
Reference in a new issue