got rid of compile time xidx, grabbing the mouse pointer instead, falling back to...