rem: if (pre_icccm && !wwin->screen_ptr->flags.startup && geometry) {
add: if (!pre_icccm && !wwin->screen_ptr->flags.startup && geometry) {
context: wClientGetNormalHints(WWindow *wwin, XWindowAttributes *wattribs, Bool geometry,		      int *x, int *y, unsigned *width, unsigned *height){    int pre_icccm = 0;		       /* not used */    /* find a position for the window */    if (!wwin->normal_hints)        wwin->normal_hints = XAllocSizeHints();    if (!PropGetNormalHints(wwin->client_win, wwin->normal_hints, &pre_icccm)) {	wwin->normal_hints->flags = 0;    }    *x = wattribs->x;    *y = wattribs->y;        *width = wattribs->width;    *height = wattribs->height;    if (!(wwin->normal_hints->flags & PWinGravity)) {	wwin->normal_hints->win_gravity = NorthWestGravity;    }    if (!(wwin->normal_hints->flags & PMinSize)) {	wwin->normal_hints->min_width = MIN_WINDOW_SIZE;	wwin->normal_hints->min_height = MIN_WINDOW_SIZE;    }    if (!(wwin->normal_hints->flags & PBaseSize)) {	wwin->normal_hints->base_width = 0;	wwin->normal_hints->base_height = 0;    }    if (!(wwin->normal_hints->flags & PMaxSize)) {	wwin->normal_hints->max_width = wwin->screen_ptr->scr_width*2;	wwin->normal_hints->max_height = wwin->screen_ptr->scr_height*2;    }    /* some buggy apps set weird hints.. */    if (wwin->normal_hints->max_width < wwin->normal_hints->min_width)	wwin->normal_hints->max_width = wwin->normal_hints->min_width;    if (wwin->normal_hints->max_height < wwin->normal_hints->min_height)	wwin->normal_hints->max_height = wwin->normal_hints->min_height;    if (!(wwin->normal_hints->flags & PResizeInc)) {	wwin->normal_hints->width_inc = 1;	wwin->normal_hints->height_inc = 1;    } else {		if (wwin->normal_hints->width_inc <= 0)	  wwin->normal_hints->width_inc = 1;	if (wwin->normal_hints->height_inc <= 0)	  wwin->normal_hints->height_inc = 1;    }        if (wwin->normal_hints->flags & PAspect) {	if (wwin->normal_hints->min_aspect.x < 1)	    wwin->normal_hints->min_aspect.x = 1;	if (wwin->normal_hints->min_aspect.y < 1)	    wwin->normal_hints->min_aspect.y = 1;		if (wwin->normal_hints->max_aspect.x < 1)	    wwin->normal_hints->max_aspect.x = 1;	if (wwin->normal_hints->max_aspect.y < 1)	    wwin->normal_hints->max_aspect.y = 1;    }        if (wwin->normal_hints->min_width <= 0)       wwin->normal_hints->min_width = MIN_WINDOW_SIZE;        if (wwin->normal_hints->min_height <= 0)      wwin->normal_hints->min_height = MIN_WINDOW_SIZE;    if (wwin->normal_hints->min_height > wwin->normal_hints->max_height) {	wwin->normal_hints->min_height = wwin->normal_hints->max_height;    }    if (wwin->normal_hints->min_width > wwin->normal_hints->max_width) {	wwin->normal_hints->min_width = wwin->normal_hints->max_width;    }#ifdef IGNORE_PPOSITION    wwin->normal_hints->flags &= ~PPosition;#endif    if (pre_icccm && !wwin->screen_ptr->flags.startup && geometry) {	if (wwin->normal_hints->flags & (USPosition|PPosition)) {	    *x = wwin->normal_hints->x;	    *y = wwin->normal_hints->y;	}	if (wwin->normal_hints->flags & (USSize|PSize)) {	    *width = wwin->normal_hints->width;	    *height = wwin->normal_hints->height;	}    }}