Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) Wayland backend #410

Merged
merged 1 commit into from
May 7, 2015
Merged

(WIP) Wayland backend #410

merged 1 commit into from
May 7, 2015

Conversation

elinorbgr
Copy link
Contributor

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 module wayland in src/platform/linux.rs and disable modules glx and x11 in src/api/mod.rs.

@tomaka
Copy link
Contributor

tomaka commented Apr 30, 2015

🎉

@@ -51,6 +51,8 @@ extern crate core_foundation;
extern crate glutin_core_graphics as core_graphics;
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
extern crate x11;
#[cfg(target_os = "linux")]
extern crate wayland_client as wayland;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this inside src/api/wayland/mod.rs (the other libs should be moved as well eventually)

@glennw
Copy link

glennw commented Apr 30, 2015

🎆 Awesome!

@elinorbgr elinorbgr force-pushed the wayland branch 2 times, most recently from 2e0d6f7 to ad489f8 Compare April 30, 2015 08:23
@tomaka tomaka mentioned this pull request Apr 30, 2015
@elinorbgr elinorbgr force-pushed the wayland branch 4 times, most recently from e70fc3b to 1e0dd22 Compare May 6, 2015 21:29
tomaka added a commit that referenced this pull request May 7, 2015
@tomaka tomaka merged commit 3e29c65 into rust-windowing:master May 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants