Fix a problem with WM_TAKE_FOCUS and some applications.