diff options
| author | bakkeby <[email protected]> | 2021-01-23 16:58:44 +0100 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2021-01-23 16:58:44 +0100 |
| commit | b4758c388d968de19d633284e86a33c4fb592982 (patch) | |
| tree | 0a22bd691c36f042a18ea41bee569cf06ffae7e0 /patch/placemouse.h | |
| parent | 0f284023050cca4a66479e36bd2fa37a1798bf83 (diff) | |
| download | dwm-flexipatch-b4758c388d968de19d633284e86a33c4fb592982.tar.gz dwm-flexipatch-b4758c388d968de19d633284e86a33c4fb592982.zip | |
placemouse: adding options for tiled position being relative to client center
Diffstat (limited to 'patch/placemouse.h')
| -rw-r--r-- | patch/placemouse.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/patch/placemouse.h b/patch/placemouse.h new file mode 100644 index 0000000..50acece --- /dev/null +++ b/patch/placemouse.h @@ -0,0 +1,5 @@ +#define INTERSECTC(x,y,w,h,z) (MAX(0, MIN((x)+(w),(z)->x+(z)->w) - MAX((x),(z)->x)) \ + * MAX(0, MIN((y)+(h),(z)->y+(z)->h) - MAX((y),(z)->y))) + +static void placemouse(const Arg *arg); +static Client *recttoclient(int x, int y, int w, int h); |
