got rid of compile time xidx configuration, querying mouse pointer instead