addAutographScopeOwnerListener

Registers listener on this view, to run whenever a surface above the view claims or releases its root (notifyAutographScopeOwnerChanged). The Compose provider uses it to re-link its root frame under the surface that now hosts it; without it, a composition that existed before the native capture was installed stays a root — and a root under no boundary applies to every event, so an off-screen pager page would lend its screen to a tap on the page beside it.

A list per view, not a slot: every outermost provider in one ComposeView shares the same host view, and a single slot let the second overwrite the first, which then never re-linked. Registering the same listener twice registers it twice, and one removeAutographScopeOwnerListener then leaves it registered — each caller owns its own registration. Main thread only.