X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=main.c;h=534402c02c5f105529ec0e375a9dd45d704caab8;hb=30561a0161629b15abe1beeb97eec3fc0768efaf;hp=db039585962983e49172624314f536e88915a7d6;hpb=4e2c5b5f256cb7c42426486161ffdae42100e902;p=dwm.git 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 */