X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/4e2c5b5f256cb7c42426486161ffdae42100e902..30561a0161629b15abe1beeb97eec3fc0768efaf:/main.c?ds=inline

diff --git a/main.c b/main.c
index db03958..534402c 100644
--- a/main.c
+++ b/main.c
@@ -217,7 +217,6 @@ main(int argc, char *argv[])
 	/* style */
 	dc.bg = getcolor(BGCOLOR);
 	dc.fg = getcolor(FGCOLOR);
-	dc.border = getcolor(BORDERCOLOR);
 	setfont(FONT);
 
 	sx = sy = 0;
@@ -240,6 +239,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 +249,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 */