Skip to content

wl: guard wl_output_release with a version check - #796

Open
daviesjamesdaniel wants to merge 1 commit into
Igalia:masterfrom
daviesjamesdaniel:fix/wl-output-release-version-guard
Open

wl: guard wl_output_release with a version check#796
daviesjamesdaniel wants to merge 1 commit into
Igalia:masterfrom
daviesjamesdaniel:fix/wl-output-release-version-guard

Conversation

@daviesjamesdaniel

Copy link
Copy Markdown

When a compositor advertises wl_output below v3 calling wl_output_release sends a request
that the server cannot support resulting in fatal protocol error. This kills the entire wl_display connection

registry_on_global_remove() calls this unconditionally

Fix is to check wl_proxy_get_version() against WL_OUTPUT_RELEASE_SINCE_VERSION before calling wl_output_release, falling back to wl_proxy_destroy() when below v3

Setup experienced on is labwc with a wlr-output-power-management to toggle on/off display using an Alexa integration

When a compositor advertises wl_output below v3 calling wl_output_release sends a request
that the server cannot support resulting in fatal protocol error. This kills the entire wl_display connection

registry_on_global_remove() calls this unconditionally

Fix is to check wl_proxy_get_version() against WL_OUTPUT_RELEASE_SINCE_VERSION before calling wl_output_release, falling back to wl_proxy_destroy() when below v3

Setup experienced on is labwc with a wlr-output-power-management to toggle on/off display using an Alexa integration
@daviesjamesdaniel
daviesjamesdaniel marked this pull request as ready for review August 27, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants