How do I lock the mouse to the viewport?

Same here, no fix found yet.