diff options
| author | bakkeby <[email protected]> | 2021-02-16 09:43:44 +0100 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2021-02-16 09:43:44 +0100 |
| commit | 009b84cbdc0495807c054564d45c66bda601dd3f (patch) | |
| tree | 7360498fa791d48eb5c710dc3749ce469db6d0a5 /patch/placemouse.c | |
| parent | 9fcfa8d6ce45d7c7530f447c200ab8977c997e78 (diff) | |
| download | dwm-flexipatch-009b84cbdc0495807c054564d45c66bda601dd3f.tar.gz dwm-flexipatch-009b84cbdc0495807c054564d45c66bda601dd3f.zip | |
placemouse: upgrade to include moveorplace function
Diffstat (limited to 'patch/placemouse.c')
| -rw-r--r-- | patch/placemouse.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/patch/placemouse.c b/patch/placemouse.c index f8f61eb..4f8fcc3 100644 --- a/patch/placemouse.c +++ b/patch/placemouse.c @@ -1,4 +1,12 @@ void +moveorplace(const Arg *arg) { + if ((!selmon->lt[selmon->sellt]->arrange || selmon->sel->isfloating)) + movemouse(arg); + else + placemouse(arg); +} + +void placemouse(const Arg *arg) { int x, y, px, py, ocx, ocy, nx = -9999, ny = -9999, freemove = 0; @@ -117,9 +125,9 @@ placemouse(const Arg *arg) attach(c); attachstack(c); selmon = m; - focus(c); } + focus(c); c->beingmoved = 0; if (nx != -9999) |
