Remove mouse capture and handle visibility via WM_SETCURSOR messages instead of window activation events. See aed7e97d0d for original implementation
aed7e97d0d