X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=wm.c;h=82b2deea6c9dc9f325f13fa5a76d8f7d6b6f165a;hb=7696c89c90c926f6371b1ee3ec1b13dd2414aa40;hp=837be3c949ec412182de5f3d9fa765e77d7c57ec;hpb=d6e0e6e9879c144f5d374fca0c015fd6208fc27e;p=dwm.git diff --git a/wm.c b/wm.c index 837be3c..82b2dee 100644 --- a/wm.c +++ b/wm.c @@ -245,10 +245,6 @@ main(int argc, char *argv[]) update_keys(); - brush.drawable = XCreatePixmap(dpy, root, rect.width, rect.height, - DefaultDepth(dpy, screen)); - brush.gc = XCreateGC(dpy, root, 0, 0); - /* style */ loadcolors(dpy, screen, &brush, BGCOLOR, FGCOLOR, BORDERCOLOR); loadfont(dpy, &brush.font, FONT); @@ -266,6 +262,11 @@ main(int argc, char *argv[]) CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); XDefineCursor(dpy, barwin, cursor[CurNormal]); XMapRaised(dpy, barwin); + + brush.drawable = XCreatePixmap(dpy, root, rect.width, barrect.height, + DefaultDepth(dpy, screen)); + brush.gc = XCreateGC(dpy, root, 0, 0); + pipe_spawn(statustext, sizeof(statustext), dpy, (char **)status); draw_bar();