about summary refs log tree commit diff stats
path: root/main.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-08 09:30:45 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-08 09:30:45 +0200
commit42277b111018c5e83cc867b04156511aa0914bf1 (patch)
tree85efed8021248711812d41e19309e47647c7b81c /main.c
parent095f9e143eb1379631f6a0ffc6b923a6f7a687e2 (diff)
downloaddwm-42277b111018c5e83cc867b04156511aa0914bf1.tar.gz
applied Sanders tiny patches
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index db03958..5efe599 100644
--- a/main.c
+++ b/main.c
@@ -240,6 +240,8 @@ main(int argc, char *argv[])
 
 	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 @@ main(int argc, char *argv[])
 	wa.cursor = cursor[CurNormal];
 	XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
 
-	strcpy(stext, "dwm-"VERSION);
 	scan();
 
 	/* main event loop, also reads status text from stdin */
a id='n163' href='#n163'>163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181