Hello o/, So after implementing the solution to my...
# compose-desktop
y
Hello o/, So after implementing the solution to my originoal problem here -> https://kotlinlang.slack.com/archives/C01D6HTPATV/p1614773539213300 I discovered that making my window
undecorated
actually makes my window non-resizable, so I was wondering if there's a solution to make my window undecorated but also resizable, thank you in advanced. 🙂
t
🤔 for me, i can resize an undecorated window. am on linux (ubuntu) what abt you ?
y
I'm on windows, maybe this is unattended behaviour?
let me try to update to the latest version, and see if it's that's the case.
Nope, still not resizable here's my main.kt file.
Copy code
fun main() = Window(
    title = "Cache Monkey",
    size = IntSize(1100, 635),
    undecorated = true,
    resizable = true,
) {
    MaterialTheme {
        Surface(
            color = Color(32, 32, 32),
            modifier = Modifier.fillMaxSize()
        ) {
            rememberRootComponent(factory = ::NavComponent).render()
        }
    }
}
t
I see. anywy the same code works for me. should be a windows thing.
cc @olonho
o
Create an issue
l
I had to use some native things on Windows to make compose undecorated window look native. (ex: title bar, resize, snap, etc.) See https://github.com/kalbetredev/CustomDecoratedJFrame. (not mine)