placemouse: adding options for tiled position being relative to client center

This commit is contained in:
bakkeby
2021-01-23 16:58:44 +01:00
parent 0f28402305
commit b4758c388d
3 changed files with 154 additions and 1 deletions

5
patch/placemouse.h Normal file
View File

@@ -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);