Skip to content

Commit 92a59f1

Browse files
committed
Add sizeLimits argument to singleWindowApplication.
1 parent 8bf38f1 commit 92a59f1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

compose/ui/ui/src/desktopMain/kotlin/androidx/compose/ui/window/v2/Window.desktop.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ fun singleWindowApplication(
191191
enabled: Boolean = true,
192192
focusable: Boolean = true,
193193
alwaysOnTop: Boolean = false,
194+
sizeLimits: WindowSizeLimits = WindowSizeLimits.Unlimited,
194195
onPreviewKeyEvent: (KeyEvent) -> Boolean = { false },
195196
onKeyEvent: (KeyEvent) -> Boolean = { false },
196197
exitProcessOnExit: Boolean = true,
@@ -208,6 +209,7 @@ fun singleWindowApplication(
208209
enabled = enabled,
209210
focusable = focusable,
210211
alwaysOnTop = alwaysOnTop,
212+
sizeLimits = sizeLimits,
211213
onPreviewKeyEvent = onPreviewKeyEvent,
212214
onKeyEvent = onKeyEvent,
213215
content = {

0 commit comments

Comments
 (0)