A finishing activity no longer takes the next one's Surface; the library label is environment, not an argument

Hand-off from the desktop to a Steam session: the new activity attached its Surface, then the
old one's surfaceDestroyed detached it - the compositor presented nothing while gamescope sent
frames by the thousand (black screen, sound only). detach() now takes the Surface being destroyed
and ignores one that is not attached. BL_LIBRARY_LABEL was added to the guest list after the
script's mode and reached the Steam client as an argument; it is an environment variable now.
This commit is contained in:
The412Banner committed 2026-09-22 11:01:58 -04:00
1 parent b28e91128f
commit 593ef8fcaf
3 files changed
+18 -3

No files matched your search

@@ -361,7 +361,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
override fun surfaceDestroyed(holder: SurfaceHolder) {
surfaceW = 0
surfaceH = 0
CompositorHost.detach()
CompositorHost.detach(holder.surface)
}
/**