pinentry-dmenu

a pinentry program based on dmenu
git clone anongit@rnpnr.xyz:pinentry-dmenu.git
Log | Files | Refs | Feed | README | LICENSE

Commit: f2f7ec7608504df71d7760212759d8d498f629ea
Parent: 53659c31e28654e2c16625150420fbbc5c7b0a52
Author: Moritz Luedecke
Date:   Sun, 20 Aug 2017 14:15:52 +0200

Format defines

Diffstat:
Mpinentry-dmenu.c | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c @@ -27,10 +27,11 @@ /* macros */ #define CONFIG "/.gnupg/pinentry-dmenu.conf" -#define INTERSECT(x,y,w,h,r) (MAX(0, MIN((x)+(w),(r).x_org+(r).width) - MAX((x),(r).x_org)) \ - && MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org))) -#define LENGTH(X) (sizeof X / sizeof X[0]) -#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad) +#define INTERSECT(x, y, w, h, r) \ + (MAX(0, MIN((x)+(w),(r).x_org+(r).width) - MAX((x),(r).x_org)) \ + && MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org))) +#define LENGTH(X) (sizeof X / sizeof X[0]) +#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad) #define MINDESCLEN 8