Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These are the firsts steps of building a wayland backend for linux. This is currently a big work in progress and not destined to be merged right away, I open this PR to have some feedback.
This backend is built on top of #407 and uses my wayland-client library. This library does runtime detection of wayland using
dlopen
, so it does not introduces a new link-time dependency.Currently, it supports the creation of a window with an EGL context, and mouse input (motion of the pointer and click). For some reason, the size of the created window does not seem right, I'm trying to figure out why.
To test it, due to current conflicts in the API, you'll have to replace the module
x11
by the modulewayland
insrc/platform/linux.rs
and disable modulesglx
andx11
insrc/api/mod.rs
.