comparison 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
comparison
equal deleted inserted replaced
20:4560e0882c1d 21:3ef108a5ca0a
141 141
142 static void 142 static void
143 expose(XEvent *e) 143 expose(XEvent *e)
144 { 144 {
145 XExposeEvent *ev = &e->xexpose; 145 XExposeEvent *ev = &e->xexpose;
146 Client *c;
146 147
147 if(ev->count == 0) { 148 if(ev->count == 0) {
148 if(ev->window == barwin) 149 if((c = getclient(ev->window)))
150 draw_client(c);
151 else if(ev->window == barwin)
149 draw_bar(); 152 draw_bar();
150 } 153 }
151 } 154 }
152 155
153 static void 156 static void