From 8933ebcf50024f4378a78e556b1ac08091197206 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 5 Oct 2024 13:01:49 +0200 Subject: sync drw.{c,h} from dmenu - drw: minor improvement to the nomatches cache - overhaul utf8decoding and render invalid utf8 sequences as U+FFFD. Thanks NRK for these improvements! --- dwm.c | 1 - 1 file changed, 1 deletion(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 67c6b2b..1443802 100644 --- a/dwm.c +++ b/dwm.c @@ -50,7 +50,6 @@ #define INTERSECT(x,y,w,h,m) (MAX(0, MIN((x)+(w),(m)->wx+(m)->ww) - MAX((x),(m)->wx)) \ * MAX(0, MIN((y)+(h),(m)->wy+(m)->wh) - MAX((y),(m)->wy))) #define ISVISIBLE(C) ((C->tags & C->mon->tagset[C->mon->seltags])) -#define LENGTH(X) (sizeof X / sizeof X[0]) #define MOUSEMASK (BUTTONMASK|PointerMotionMask) #define WIDTH(X) ((X)->w + 2 * (X)->bw) #define HEIGHT(X) ((X)->h + 2 * (X)->bw) -- cgit v1.2.3