JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.24k stars 1.18k forks source link

UI thread is blocked on Linux when display is in power saving mode #2010

Closed akwizgran closed 1 month ago

akwizgran commented 2 years ago

Thanks for making this amazing UI framework. :-)

When Compose is running on Linux with XOrg, the Swing UI thread is blocked while the display is in power saving mode. This doesn't happen with plain Swing. Here's a minimal test app that can be used to reproduce the issue and show that it doesn't happen with plain Swing:

https://code.briarproject.org/akwizgran/ui-thread-blocked

I can reproduce the issue locally with my laptop's internal display or an external monitor, and a colleague can also reproduce it, but I guess it may be hardware-specific in some way.

akwizgran commented 2 years ago

My local setup:

okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.