tfixed order - dwm - [fork] customized build of dwm, the dynamic window manager | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 138b7fbd0563e176e4f4dce8ac771263f74ff6cb | |
parent e7508783e85aba0ce4ab09b0dd76c40342113aed | |
Author: Anselm R. Garbe <[email protected]> | |
Date: Tue, 20 Feb 2007 13:48:02 +0100 | |
fixed order | |
Diffstat: | |
M draw.c | 22 +++++++++++----------- | |
1 file changed, 11 insertions(+), 11 deletions(-) | |
--- | |
diff --git a/draw.c b/draw.c | |
t@@ -6,17 +6,6 @@ | |
/* static */ | |
-static unsigned int | |
-textnw(const char *text, unsigned int len) { | |
- XRectangle r; | |
- | |
- if(dc.font.set) { | |
- XmbTextExtents(dc.font.set, text, len, NULL, &r); | |
- return r.width; | |
- } | |
- return XTextWidth(dc.font.xfont, text, len); | |
-} | |
- | |
static void | |
drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]) { | |
int x; | |
t@@ -48,6 +37,17 @@ isoccupied(unsigned int t) { | |
return False; | |
} | |
+static unsigned int | |
+textnw(const char *text, unsigned int len) { | |
+ XRectangle r; | |
+ | |
+ if(dc.font.set) { | |
+ XmbTextExtents(dc.font.set, text, len, NULL, &r); | |
+ return r.width; | |
+ } | |
+ return XTextWidth(dc.font.xfont, text, len); | |
+} | |
+ | |
/* extern */ | |
void |