rem: if (!HAS_TITLEBAR(wwin))
add: if (HAS_TITLEBAR(wwin) && wwin->frame->titlebar) sevent.xconfigure.above = wwin->frame->titlebar->window; else
context: wWindowSynthConfigureNotify(WWindow *wwin){    XEvent sevent;    sevent.type = ConfigureNotify;    sevent.xconfigure.display = dpy;    sevent.xconfigure.event = wwin->client_win;    sevent.xconfigure.window = wwin->client_win;    sevent.xconfigure.x = wwin->client.x;    sevent.xconfigure.y = wwin->client.y;    sevent.xconfigure.width = wwin->client.width;    sevent.xconfigure.height = wwin->client.height;    sevent.xconfigure.border_width = wwin->old_border_width;    if (!HAS_TITLEBAR(wwin))        sevent.xconfigure.above = None;    else        sevent.xconfigure.above = wwin->frame->titlebar->window;    sevent.xconfigure.override_redirect = False;    XSendEvent(dpy, wwin->client_win, False, StructureNotifyMask, &sevent);    XFlush(dpy);}