[hackers] [dwm] fixed order

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Tue Feb 20 13:48:34 2007

changeset: 794:6fa07beba3a7
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Tue Feb 20 13:48:02 2007 +0100
summary: fixed order

diff -r 79cb72e82b21 -r 6fa07beba3a7 draw.c
--- a/draw.c Tue Feb 20 13:46:21 2007 +0100
+++ b/draw.c Tue Feb 20 13:48:02 2007 +0100
@@ -5,17 +5,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]) {
@@ -46,6 +35,17 @@ isoccupied(unsigned int t) {
                 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 */
Received on Tue Feb 20 2007 - 13:48:34 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:32 UTC