Fix a minor logic bug in rotating focus from non-managed windows.