summaryrefslogtreecommitdiff
path: root/patch/placemouse.h
blob: 20c3eca0a14a788fa85d7e6587f3a8071734c61f (plain)
1
2
3
4
5
6
7
#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 moveorplace(const Arg *arg);
static void placemouse(const Arg *arg);
static Client *recttoclient(int x, int y, int w, int h);