Skip to content

Conversation

@tychedelia
Copy link
Member

Before, we were using feature detection inside a single create_surface method in order to determine which platform we were running on. However, this is problematic in the case of Linux, where we have the choice of Wayland or X11 and in theory could compile both options. In that case, which do we chose?

The better architecture here is to have per-platform surface methods that are only enabled for that particular platform and feature combo. This leaves the correct surface method to call up to the implementer.

Also adds some features to control this, preserving the Wayland by default semantics.

@tychedelia tychedelia requested a review from catilac December 13, 2025 23:38
@tychedelia tychedelia marked this pull request as ready for review December 13, 2025 23:38
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