applied Brendan MacDonell's WM_TAKE_FOCUS patch, thanks Brendan!