X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=event.c;h=d1687874f7de33dd867188cc0a7c9866214a2a3d;hp=870ed4a786d96f2d641b2ebc5c034365b65dcec2;hb=26e134b8a7dae21a699822009674b3131de6e250;hpb=005362043d8b0bbf856f301c231d4f10c519b8c4 diff --git a/event.c b/event.c index 870ed4a..d168787 100644 --- a/event.c +++ b/event.c @@ -81,13 +81,11 @@ configurerequest(XEvent *e) static void destroynotify(XEvent *e) { -#if 0 Client *c; XDestroyWindowEvent *ev = &e->xdestroywindow; - if((c = client_of_win(ev->window))) - destroy_client(c); -#endif + if((c = getclient(ev->window))) + unmanage(c); } static void