- bx = by = 0;
- bw = sw;
- bh = texth(&brush.font);
- barwin = XCreateWindow(dpy, root, bx, by, bw, bh, 0, DefaultDepth(dpy, screen),
- CopyFromParent, DefaultVisual(dpy, screen),
- CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
- XDefineCursor(dpy, barwin, cursor[CurNormal]);
- XMapRaised(dpy, barwin);
-
- brush.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen));
- brush.gc = XCreateGC(dpy, root, 0, 0);
-
- pipe_spawn(statustext, sizeof(statustext), dpy, (char **)status);
- draw_bar();
+ dc.drawable = XCreatePixmap(dpy, root, sw, th, DefaultDepth(dpy, screen));
+ dc.gc = XCreateGC(dpy, root, 0, 0);