From 83d23908d3438d7f1f62533a7c8d96fc1019df55 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Tue, 11 Jul 2006 23:18:30 +0200 Subject: implemented draw_client stuff --- wm.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'wm.c') 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(); -- cgit v1.2.3-54-g00ecf