fixing mouse to be bound to window, passing to instance if there is one