event.c
changeset 11 ea9c08ec4b48
parent 10 703255003abb
child 13 5cc5e55a132d
--- a/event.c	Tue Jul 11 13:02:22 2006 +0200
+++ b/event.c	Tue Jul 11 13:21:57 2006 +0200
@@ -81,13 +81,11 @@
 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