I figured it out! I had to move the `DecoratedWindowScope` to a variable and then use it outside of ...
t
I figured it out! I had to move the
DecoratedWindowScope
to a variable and then use it outside of the
DecoratedWindow
.
Copy code
var windowScope: DecoratedWindowScope? by remember { mutableStateOf(null) }

    DecoratedWindow(
        ...
    ) {
        windowScope = this
        ...
Copy code
windowScope?.window?.placement = windowData.placement
    windowScope?.window?.isMinimized = windowData.isMinimized
🧵 2