summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2024-10-05 13:01:49 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2024-10-05 13:06:08 +0200
commit8933ebcf50024f4378a78e556b1ac08091197206 (patch)
tree5afad27f94d2b0b444a230ba7019ff13aaaa8996 /dwm.c
parent5687f4696472ba6029bbba18e293e3e8b9e154ea (diff)
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!
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c1
1 files changed, 0 insertions, 1 deletions
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)