rem: puts("got destroy notify");
add: dputs("got destroy notify");
context: handleDestroyNotify(XEvent *event){    WWindow *wwin;    WApplication *app;    Window window = event->xdestroywindow.window;#ifdef DEBUG    puts("got destroy notify");#endif	        wwin = wWindowFor(window);    if (wwin) {	wUnmanageWindow(wwin, False, True);    }    app = wApplicationOf(window);    if (app) {	if (window == app->main_window) {	    app->refcount = 0;	    wwin = app->main_window_desc->screen_ptr->focused_window;	    while (wwin) {		if (wwin->main_window == window) {		    wwin->main_window = None;		}		wwin = wwin->prev;	    }	}	wApplicationDestroy(app);    }    #ifdef KWM_HINTS    wKWMCheckDestroy(&event->xdestroywindow);#endif}