applied nsz' textnw patch thank you
authorarg@suckless.org
Mon, 09 Jun 2008 10:26:01 +0200
changeset 1257 cd74054c01b0
parent 1256 6d95bb0fe49a
child 1258 d646e1098d44
applied nsz' textnw patch thank you
dwm.c
--- a/dwm.c	Mon Jun 09 10:05:40 2008 +0200
+++ b/dwm.c	Mon Jun 09 10:26:01 2008 +0200
@@ -166,7 +166,7 @@
 void setup(void);
 void spawn(const void *arg);
 void tag(const void *arg);
-uint textnw(const char *text, uint len);
+int textnw(const char *text, uint len);
 void tile(void);
 void togglebar(const void *arg);
 void togglefloating(const void *arg);
@@ -296,7 +296,8 @@
 
 void
 buttonpress(XEvent *e) {
-	uint i, x, mask;
+	uint i, mask;
+	int x;
 	Client *c;
 	XButtonPressedEvent *ev = &e->xbutton;
 
@@ -1308,7 +1309,8 @@
 
 void
 setup(void) {
-	uint i, w;
+	uint i;
+	int w;
 	XSetWindowAttributes wa;
 
 	/* init screen */
@@ -1413,7 +1415,7 @@
 	}
 }
 
-uint
+int
 textnw(const char *text, uint len) {
 	XRectangle r;