X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=5efe59976ba83b1747ff85a9044c14e98cf8e97f;hb=00255728aae0dcbb657e8a4e145515c673b546a4;hp=db039585962983e49172624314f536e88915a7d6;hpb=4e2c5b5f256cb7c42426486161ffdae42100e902;p=dwm.git 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 */