Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Prevent duplicated setActive(false) calls #3376

Merged
merged 1 commit into from
May 14, 2020

Conversation

MortimerGoro
Copy link
Contributor

It seems that calling setActiva(false) twice causes some issues. When we enter immersive mode we call setActive(false) on the non focused windows and we call surfaceDestroyed. If we show the Oculus menu later, setActive(false) is called again

Fixes #3375

@MortimerGoro MortimerGoro requested a review from bluemarvin May 14, 2020 15:43
@MortimerGoro MortimerGoro added this to the #10 features milestone May 14, 2020
@MortimerGoro MortimerGoro self-assigned this May 14, 2020
Comment on lines 770 to 775
if (mState.mSession != null && mState.isActive() == aActive) {
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think setActive(true); is okay and since we can get out of sync, I think we should just guard against setActive(false) twice?

@MortimerGoro MortimerGoro force-pushed the v10/duplicated_set_active branch from db7c945 to b70161b Compare May 14, 2020 16:14
@bluemarvin bluemarvin merged commit 9b9d7c6 into master May 14, 2020
@bluemarvin bluemarvin deleted the v10/duplicated_set_active branch May 14, 2020 17:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IInactive window and nfinite WebXR spinner after showing the Oculus menu in multiwindow
2 participants