This repository was archived by the owner on Jul 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
common/shared/org/mozilla/vrbrowser Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -961,7 +961,8 @@ void pauseGeckoViewCompositor() {
961
961
return ;
962
962
}
963
963
mIsPresentingImmersive = true ;
964
- mWindows .enterImmersiveMode ();
964
+ runOnUiThread (() -> mWindows .enterImmersiveMode ());
965
+
965
966
TelemetryWrapper .startImmersive ();
966
967
GleanMetricsService .startImmersive ();
967
968
PauseCompositorRunnable runnable = new PauseCompositorRunnable ();
@@ -985,7 +986,8 @@ void resumeGeckoViewCompositor() {
985
986
return ;
986
987
}
987
988
mIsPresentingImmersive = false ;
988
- mWindows .exitImmersiveMode ();
989
+ runOnUiThread (() -> mWindows .exitImmersiveMode ());
990
+
989
991
// Show the window in front of you when you exit immersive mode.
990
992
resetUIYaw ();
991
993
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ struct ExternalVR::State {
127
127
vrb::Vector eyeOffsets[device::EyeCount];
128
128
uint64_t lastFrameId = 0 ;
129
129
bool firstPresentingFrame = false ;
130
- bool compositorEnabled = false ;
130
+ bool compositorEnabled = true ;
131
131
bool waitingForExit = false ;
132
132
133
133
State () {
You can’t perform that action at this time.
0 commit comments