summaryrefslogtreecommitdiffhomepage
path: root/util.h
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-06-11 19:42:00 +0200
committerbakkeby <[email protected]>2020-06-11 16:44:43 +0200
commit8c4eaccf16b533cefe34b090e970ff66911a2a7b (patch)
tree4ea444a2e180fdf728b4f29b8a912dceedaa7cde /util.h
parente355c49833bf3bb11457ae32dbe9696d33e10883 (diff)
downloaddwm-flexipatch-8c4eaccf16b533cefe34b090e970ff66911a2a7b.tar.gz
dwm-flexipatch-8c4eaccf16b533cefe34b090e970ff66911a2a7b.zip
Adding pango patch (ref. #10)
Text from original patch: Using pango markup for status text Use a single font. Removed some code utf8 code from drw. Created for pango 1.44. Older versions might not have getter for font height, ascent + descent can be used instead. All texts are rendered with pango but only status is with markup. Increased stext size (in case a lot of markup is used). MIN/MAX is already defined (didn't redefine them).
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.h b/util.h
index f633b51..531ab25 100644
--- a/util.h
+++ b/util.h
@@ -1,7 +1,11 @@
/* See LICENSE file for copyright and license details. */
+#ifndef MAX
#define MAX(A, B) ((A) > (B) ? (A) : (B))
+#endif
+#ifndef MIN
#define MIN(A, B) ((A) < (B) ? (A) : (B))
+#endif
#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B))
void die(const char *fmt, ...);