Hi everyone. There might be an issue regarding res...
# compose-desktop
t
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")
}
}
}
c
dont run ubuntu or else i would try. sorry
👍 1
t
a
@Thomas the video appears to be corrupt in your issue. I'm on ubuntu 20.04. I shall try in max. 1 hour your issue and come back
t
Thanks for pointing this out. Hm. On Windows inside Chrome the clip plays fine. Does it not show at all, or is the content scrambled? Anyway, thanks a lot for trying on your machine
a
Doesn't show at all. I'm on firefox on Linux
On chrome I can play it, though
👍 1
t
There's a question on Ask Ubuntu reagrding Firefox not playing MP4s, and the posters say some H.264 stuff might be missing... Have not tried myself because my Ubuntu sits inside a VirutalBox, so using it primarily for testing purposes... https://askubuntu.com/q/1170482
a
@Thomas I can confirm your bug. Also, if you resize your window, it does not resize the content.
Looks like a complete freeze to me, because I can't close the window either
t
Yes, that's what I notice, too. Should probably add this to the issue. Thanks a lot for checking this. Came across this during my investigations regarding Dark Mode (maybe you have seen my posts here)
a
Yeah, I remember. Glad I could help
❤️ 1
t
Much appreciated