diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2021-03-30 13:56:04 -0500 |
---|---|---|
committer | Devin J. Pohly <djpohly@gmail.com> | 2021-03-30 13:56:04 -0500 |
commit | 3c83e0cfb8cfb20cab2775b8da0925fb26a35678 (patch) | |
tree | 701ba24d998c534e365b75d90c327617c78036f7 | |
parent | db647f2df63c35270f23a970f29a8f155466d9ea (diff) |
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.
-rw-r--r-- | dwl.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 */ |