rem: for (i = 0; i < scr->xine_info.count; i++) {
add: for (i = 0; i < wXineramaHeads(scr); i++) {
context: wGetRectPlacementInfo(WScreen *scr, WMRect rect, int *flags){    int best;    unsigned long area, totalArea;    int i;    int rx = rect.pos.x;    int ry = rect.pos.y;    int rw = rect.size.width;    int rh = rect.size.height;    wassertrv(flags!=NULL, 0);    best = -1;    area = 0;    totalArea = 0;    *flags = XFLAG_NONE;    if (scr->xine_info.count <= 1) {	unsigned long a;	a = calcIntersectionArea(rx, ry, rw, rh,				 0, 0, scr->scr_width, scr->scr_height);	if (a == 0) {	    *flags |= XFLAG_DEAD;	} else if (a != rw*rh) {	    *flags |= XFLAG_PARTIAL;	}		return scr->xine_info.primary_head;    }    for (i = 0; i < scr->xine_info.count; i++) {	unsigned long a;	a = calcIntersectionArea(rx, ry, rw, rh,				 scr->xine_info.screens[i].pos.x,				 scr->xine_info.screens[i].pos.y,				 scr->xine_info.screens[i].size.width,				 scr->xine_info.screens[i].size.height);	totalArea += a;	if (a > area) {	    if ( best != -1)		*flags |= XFLAG_MULTIPLE;	    area = a;	    best = i;	}    }    if ( best == -1) {	*flags |= XFLAG_DEAD;	best = wGetHeadForPointerLocation(scr);    } else if ( totalArea != rw*rh) 	*flags |= XFLAG_PARTIAL;    return best;}