~kris/suckless

dwm

ref: 9d111695d836f7a8edb2884da93497b488c57422 dwm/patch/recttoclient.h -rw-r--r-- 255 bytes
9d111695 — Kris Yotam chore: sync local state after restore (push updates, no pull) a month ago
                                                                                
1
2
3
4
#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 Client *recttoclient(int x, int y, int w, int h, int include_floating);