fixed order
Anselm R. Garbe arg@suckless.org
Tue, 20 Feb 2007 13:48:02 +0100
1 files changed,
11 insertions(+),
11 deletions(-)
jump to
M
draw.c
→
draw.c
@@ -6,17 +6,6 @@ #include <string.h>
/* 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;@@ -46,6 +35,17 @@ for(c = clients; c; c = c->next)
if(c->tags[t]) return True; 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 */