dwm-meillo

diff event.c @ 21:3ef108a5ca0a

implemented draw_client stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 23:18:30 +0200
parents 4560e0882c1d
children bd3a44353916
line diff
     1.1 --- a/event.c	Tue Jul 11 22:49:09 2006 +0200
     1.2 +++ b/event.c	Tue Jul 11 23:18:30 2006 +0200
     1.3 @@ -143,9 +143,12 @@
     1.4  expose(XEvent *e)
     1.5  {
     1.6  	XExposeEvent *ev = &e->xexpose;
     1.7 +	Client *c;
     1.8  
     1.9  	if(ev->count == 0) {
    1.10 -		if(ev->window == barwin)
    1.11 +		if((c = getclient(ev->window)))
    1.12 +			draw_client(c);
    1.13 +		else if(ev->window == barwin)
    1.14  			draw_bar();
    1.15  	}
    1.16  }