dotfiles-mirror/dwm/patch/recttoclient.h
2026-02-05 03:05:24 +03:30

4 lines
255 B
C

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