rem: if (wwin->flags.shaped && resize) {  XSync(dpy, False); wusleep(1000);
add: if (wShapeSupported && wwin->flags.shaped && resize) {
context: wWindowConfigure(wwin, req_x, req_y, req_width, req_height)WWindow *wwin;int req_x, req_y;		       /* new position of the frame */int req_width, req_height;	       /* new size of the client */{    int synth_notify = False;    int resize;        resize = (req_width!=wwin->client.width	      || req_height!=wwin->client.height);    /*      * if the window is being moved but not resized then     * send a synthetic ConfigureNotify     */    if ((req_x!=wwin->frame_x || req_y!=wwin->frame_y) && !resize) {	synth_notify = True;    }            if (wwin->window_flags.dont_move_off)	wScreenBringInside(wwin->screen_ptr, &req_x, &req_y, 			   req_width, req_height);    if (resize) {	if (req_width < MIN_WINDOW_SIZE)	    req_width = MIN_WINDOW_SIZE;	if (req_height < MIN_WINDOW_SIZE)	    req_height = MIN_WINDOW_SIZE;	XResizeWindow(dpy, wwin->client_win, req_width, req_height);	if (wwin->flags.shaded) {	    wFrameWindowResize(wwin->frame, req_width, wwin->frame->core->height);	    wwin->old_geometry.height = req_height;	} else {	    wFrameWindowResizeInternal(wwin->frame, req_width, req_height);	}	wwin->client.x = req_x;	wwin->client.y = req_y + wwin->frame->top_width;	wwin->client.width = req_width;	wwin->client.height = req_height;	XMoveWindow(dpy, wwin->frame->core->window, req_x, req_y);    } else {	wwin->client.x = req_x;	wwin->client.y = req_y + wwin->frame->top_width;	XMoveWindow(dpy, wwin->frame->core->window, req_x, req_y);    }    wwin->frame_x = req_x;    wwin->frame_y = req_y;    #ifdef SHAPE    if (wwin->flags.shaped && resize) {	/*	 * Kluge: it seems that without this delay, wmaker will	 * use the shape mask of the client before the resize.	 * The usleep() should give some time for the client	 * to update itself. Wont work all the time, but thats	 * better than nothing, I guess...	 * There should be a better way of doing this or I'm just	 * doing something wrong elsewhere. 	 */	XSync(dpy, False);	wusleep(1000);	wWindowSetShape(wwin);	XSync(dpy, False);    }#endif        if (synth_notify)	wWindowSynthConfigureNotify(wwin);}