Skip to content

backends/wayland: Linearize startup sequence

This change removes async bits from the startup code in the wayland backend to make it simpler. The main motivation behind this change is to refactor the wayland backend so OutputBackend::isReady() can be removed.


OutputBackend has a concept of readiness. When the host compositor goes down, the OutputBackend will be marked as not ready, and when it reappears, the output backend will be marked ready again.

On the other hand, host compositor going down is a niche case, it's not something that often happens and it's hard to justify adding more moving parts to the startup code. It's easier to call initialize() and check whether it fails rather than call initialize() and then monitor isReady.

Therefore, this change drops OutputBackend::isReady() to make startup simpler.


Needs frameworks/kwayland!83

Edited by Vlad Zahorodnii

Merge request reports