main.c
changeset 222 770233c1df06
parent 214 51ac019cf587
child 229 f4f5d000ce7a
--- a/main.c	Mon Aug 07 17:38:14 2006 +0200
+++ b/main.c	Tue Aug 08 09:30:45 2006 +0200
@@ -240,6 +240,8 @@
 
 	dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen));
 	dc.gc = XCreateGC(dpy, root, 0, 0);
+
+	strcpy(stext, "dwm-"VERSION);
 	drawstatus();
 
 	issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask);
@@ -248,7 +250,6 @@
 	wa.cursor = cursor[CurNormal];
 	XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
 
-	strcpy(stext, "dwm-"VERSION);
 	scan();
 
 	/* main event loop, also reads status text from stdin */