X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=534402c02c5f105529ec0e375a9dd45d704caab8;hb=30561a0161629b15abe1beeb97eec3fc0768efaf;hp=4c7a1a4336c1b37be3b88e81db614f76d2602c70;hpb=d54444cfd73f5006bf58e29e50a4ed28d08f9435;p=dwm.git diff --git a/main.c b/main.c index 4c7a1a4..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,10 +249,9 @@ main(int argc, char *argv[]) wa.cursor = cursor[CurNormal]; XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa); - strcpy(stext, "dwm-"VERSION); scan(); - /* main event loop, reads status text from stdin as well */ + /* main event loop, also reads status text from stdin */ while(running) { FD_ZERO(&rd); if(readin)