X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=event.c;h=16201f33a9493f8512f91508caed44869a9855af;hp=b96aba99843cd065c3b2010c163800d71eb09556;hb=9800518ae3505e54c0e52ea3d40050f279e722d6;hpb=04dec4c94390fdf57893615de5b5872dd5abbce4 diff --git a/event.c b/event.c index b96aba9..16201f3 100644 --- a/event.c +++ b/event.c @@ -221,7 +221,7 @@ destroynotify(XEvent *e) { XDestroyWindowEvent *ev = &e->xdestroywindow; if((c = getclient(ev->window))) - unmanage(c, WithdrawnState); + unmanage(c); } static void @@ -245,7 +245,7 @@ expose(XEvent *e) { if(ev->count == 0) { if(barwin == ev->window) - drawstatus(); + drawbar(); } } @@ -322,7 +322,7 @@ propertynotify(XEvent *e) { if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { updatetitle(c); if(c == sel) - drawstatus(); + drawbar(); } } } @@ -332,10 +332,8 @@ unmapnotify(XEvent *e) { Client *c; XUnmapEvent *ev = &e->xunmap; - if((c = getclient(ev->window)) && (ev->event == root)) { - if(ev->send_event || c->unmapped-- == 0) - unmanage(c, WithdrawnState); - } + if((c = getclient(ev->window))) + unmanage(c); } /* extern */