X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=event.c;h=f29038a0fdb25b0719b2c61a2f744f934c8dec51;hp=84b0698c070209a251501636d4f9a397a54da05f;hb=83d23908d3438d7f1f62533a7c8d96fc1019df55;hpb=a05beb6585713aeb661cf30c080e77fbfdb28867 diff --git a/event.c b/event.c index 84b0698..f29038a 100644 --- a/event.c +++ b/event.c @@ -143,9 +143,12 @@ static void expose(XEvent *e) { XExposeEvent *ev = &e->xexpose; + Client *c; if(ev->count == 0) { - if(ev->window == barwin) + if((c = getclient(ev->window))) + draw_client(c); + else if(ev->window == barwin) draw_bar(); } }