Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
796 stars 100 forks source link

Remove the passthrough layer when entering immersive #1353

Closed svillar closed 5 months ago

svillar commented 5 months ago

Some platforms (like Meta) implement passthrough via an special compositor layer called the passthrough layer. This passthrough layer is only added to the list of layers for the compositor when in non immersive mode. This means that should not visible inside immersive experiences. However that was not true for some experiences like Moonrider.

In order to make it work properly we need to destroy that layer when entering immersive and recreate it (if needed) when getting back to standalone mode.

Fixes #1351