mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 11:46:31 +00:00
don't move/resize if already moving/resizing
Fixes #102. The "ideal" behavior might be to ignore buttons other than the one being used for the action, but this is super-simple and still seems reasonable.
This commit is contained in:
parent
db647f2df6
commit
3c83e0cfb8
1 changed files with 1 additions and 2 deletions
3
dwl.c
3
dwl.c
|
@ -1454,8 +1454,7 @@ motionrelative(struct wl_listener *listener, void *data)
|
|||
void
|
||||
moveresize(const Arg *arg)
|
||||
{
|
||||
grabc = xytoclient(cursor->x, cursor->y);
|
||||
if (!grabc)
|
||||
if (cursor_mode != CurNormal || !(grabc = xytoclient(cursor->x, cursor->y)))
|
||||
return;
|
||||
|
||||
/* Float the window and tell motionnotify to grab it */
|
||||
|
|
Loading…
Reference in a new issue