rem: for (i = 0; i < scr->xine_info.count; i++) {
add: for (i = 0; i < wXineramaHeads(scr); i++) {
context: wGetHeadForRect(WScreen *scr, WMRect rect){    int best;    unsigned long area;    int i;    int rx = rect.pos.x;    int ry = rect.pos.y;    int rw = rect.size.width;    int rh = rect.size.height;    if (!scr->xine_info.count)	return scr->xine_info.primary_head;    best = -1;    area = 0;    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);	if (a > area) {	    area = a;	    best = i;	}    }    /*     * in case rect is in dead space, return valid head     */    if (best == -1)	best = wGetHeadForPointerLocation(scr);    return best;}