|
|
|
@ -336,7 +336,7 @@ fun main() = application {
|
|
|
|
|
val state = rememberWindowState() |
|
|
|
|
|
|
|
|
|
Window(state) { |
|
|
|
|
} |
|
|
|
|
// Content |
|
|
|
|
|
|
|
|
|
LaunchedEffect(state) { |
|
|
|
|
snapshotFlow { state.size } |
|
|
|
@ -348,6 +348,7 @@ fun main() = application {
|
|
|
|
|
.onEach(::onWindowRelocate) |
|
|
|
|
.launchIn(this) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun onWindowResize(size: WindowSize) { |
|
|
|
@ -357,7 +358,6 @@ private fun onWindowResize(size: WindowSize) {
|
|
|
|
|
private fun onWindowRelocate(position: WindowPosition) { |
|
|
|
|
println("onWindowRelocate $position") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
## Handle window-level shortcuts |
|
|
|
|