fix bug in CKNoFocusWindows with OnStateChanged