A better fix for the mouse being captured if the window doesn't have focus during load.