aewl

diff wm.c @ 21:3ef108a5ca0a

implemented draw_client stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 23:18:30 +0200
parents 359b6e563b95
children e8f627998d6f
line diff
     1.1 --- a/wm.c	Tue Jul 11 22:49:09 2006 +0200
     1.2 +++ b/wm.c	Tue Jul 11 23:18:30 2006 +0200
     1.3 @@ -245,10 +245,6 @@
     1.4  
     1.5  	update_keys();
     1.6  
     1.7 -	brush.drawable = XCreatePixmap(dpy, root, rect.width, rect.height,
     1.8 -			DefaultDepth(dpy, screen));
     1.9 -	brush.gc = XCreateGC(dpy, root, 0, 0);
    1.10 -
    1.11  	/* style */
    1.12  	loadcolors(dpy, screen, &brush, BGCOLOR, FGCOLOR, BORDERCOLOR);
    1.13  	loadfont(dpy, &brush.font, FONT);
    1.14 @@ -266,6 +262,11 @@
    1.15  			CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
    1.16  	XDefineCursor(dpy, barwin, cursor[CurNormal]);
    1.17  	XMapRaised(dpy, barwin);
    1.18 +
    1.19 +	brush.drawable = XCreatePixmap(dpy, root, rect.width, barrect.height,
    1.20 +			DefaultDepth(dpy, screen));
    1.21 +	brush.gc = XCreateGC(dpy, root, 0, 0);
    1.22 +
    1.23  	pipe_spawn(statustext, sizeof(statustext), dpy, (char **)status);
    1.24  	draw_bar();
    1.25