https://kotlinlang.org logo
Title
y

Yofou

03/04/2021, 12:39 PM
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

theapache64

03/04/2021, 12:42 PM
🤔 for me, i can resize an undecorated window. am on linux (ubuntu) what abt you ?
y

Yofou

03/04/2021, 12:44 PM
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.
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

theapache64

03/04/2021, 12:57 PM
I see. anywy the same code works for me. should be a windows thing.
cc @olonho
o

olonho

03/04/2021, 3:58 PM
Create an issue
l

lhwdev

03/06/2021, 6:20 AM
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)