Slight performance improvement for WindowManager::updateVisible