Skip to content

Pick best supported alpha composite mode from surface#68

Open
FuZzledd wants to merge 1 commit into
DioxusLabs:mainfrom
FuZzledd:vello-hybrid-transparent
Open

Pick best supported alpha composite mode from surface#68
FuZzledd wants to merge 1 commit into
DioxusLabs:mainfrom
FuZzledd:vello-hybrid-transparent

Conversation

@FuZzledd

@FuZzledd FuZzledd commented Jul 6, 2026

Copy link
Copy Markdown

Previously, the alpha composite mode was always set to auto, which only picks between Opaque and Inherit,
but on Wayland (and possibly other platforms), the surface only supports Opaque and PreMultiplied,
so transparent windows would never work.

This is very lazy way to query the surface capabilities for the highest supported alpha mode, which will pick the first of, in order,
Inherit, PostMultiplied, PreMultiplied, Opaque, or Auto (according to the enum)

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.

1 participant