Hi everyone. There might be an issue regarding responsiveness... Before I open an issue on GitHub, would someone please kindly verify if this is reproducable? Running a short demo on Ubuntu 20.04 causes a Compose for Desktop app to become unresponsive if the theme is switched while the app is running.
So, on Ubuntu 20.04
• run this app (button presses print hello
• While the app is running, open Settings and change the scheme to/from dark mode
• now button clicks no longer print something
package com.thomaskuenneth
import androidx.compose.desktop.Window
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
fun main() = Window {
Box(contentAlignment = Alignment.Center,
modifier = Modifier.fillMaxSize()) {
Button(onClick = {
println("Hello")
}) {
Text("Hallo")
}
}
}