rem: wwin->frame_x -= gx * (wwin->old_border_width - FRAME_BORDER_WIDTH); wwin->frame_y -= gy * (wwin->old_border_width - FRAME_BORDER_WIDTH);
add: wwin->frame_x -= gx * FRAME_BORDER_WIDTH; wwin->frame_y -= gy * FRAME_BORDER_WIDTH;
context: wClientRestore(WWindow *wwin){    int gx, gy;        wClientGetGravityOffsets(wwin, &gx, &gy);    /* set the positio of the frame on screen */    wwin->frame_x -= gx * (wwin->old_border_width - FRAME_BORDER_WIDTH);    wwin->frame_y -= gy * (wwin->old_border_width - FRAME_BORDER_WIDTH);    /* if gravity is to the south, account for the border sizes */    if (gy > 0)	wwin->frame_y += (wwin->frame->top_width + wwin->frame->bottom_width);    XUnmapWindow(dpy, wwin->client_win);    XSetWindowBorderWidth(dpy, wwin->client_win, wwin->old_border_width);        XReparentWindow(dpy, wwin->client_win, wwin->screen_ptr->root_win,		    wwin->frame_x, wwin->frame_y);    if (wwin->flags.mapped)      XMapWindow(dpy, wwin->client_win);        /* don't let the window get iconified after restart */    if (wwin->flags.shaded)      wClientSetState(wwin, NormalState, None);}