rem: XSelectInput(dpy, wwin->client_win, attribs.your_event_mask & ~StructureNotifyMask);
add: XSelectInput(dpy, wwin->client_win, wwin->event_mask & ~StructureNotifyMask);
context: wWindowUnmap(WWindow *wwin){    XWindowAttributes attribs;    XGetWindowAttributes(dpy, wwin->client_win, &attribs);    wwin->flags.mapped = 0;    /* prevent window withdrawal when getting UnmapNotify */    XSelectInput(dpy, wwin->client_win,		 attribs.your_event_mask & ~StructureNotifyMask);    XUnmapWindow(dpy, wwin->client_win);    XSelectInput(dpy, wwin->client_win, attribs.your_event_mask);    XUnmapWindow(dpy, wwin->frame->core->window);}