Skip to content

compositor: Update topmost window actor after visibility changes

The compositor currently only updates the topmost window actor that is visible to it after stacking changes. The visibility of a window actor to the compositor however might only change via the display idle queue after the stacking changes. This could then lead to the topmost window actor being assumed to be NULL on Wayland after switching from an empty workspace or when opening the first window on an empty workspace. The result of this is direct scanout being disabled in these cases.

To fix this also trigger the update when the visibility of windows changes.

Fixes: #2269 (closed)

Merge request reports