-
Notifications
You must be signed in to change notification settings - Fork 109
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
Wayland support? #98
Comments
Hey, glad you are enjoying Rx! The underlying library I use to create the graphics context has experimental Wayland support, so it should be possible. I'm looking into it now. |
Hey, it looks like a few people are using Rx on Wayland already. How are you running Rx? From source or from the AppImage? I think if you have |
Hi there! I run Rx from command line with "rx &". For installation I've used package from AUR. Tried both ordinary rx package and rx-bin, none of them seems to work without X11. I have installed glfw-wayland package as well but it doesn't solve the problem. The previously mentioned error pops up. Just in case some technical information regarding software I use:
|
I think it may be that people are running x11 within wayland 🤔, ie. non-natively. To run it natively, from my understanding, would require building glfw-rs (https://github.com/PistonDevelopers/glfw-rs) with wayland support. One thing you could try though is to build |
Thanks! I will give it a try this evening. |
Hi there! It's been a while since I tried rx. I've switched the system but the base remains the same: Wayland. I encountered yet another problem with compilation process:
I can clearly see the core of the problem:
It looks like |
I found that Wayland can be enabled through this command when building glfw (Taken from this issue)
Is there any way to specify that variable in Cargo.toml or Cargo.lock? |
Could you try installing GLFW via your distribution's package manager and then trying to build again? I'm wondering if it might be able to pickup the installed glfw that way instead of building it. |
One alternative that could be considered is using winit instead of glfw. Winit has out of the box Wayland support and will work with OpenGL. |
Yeah, I'd be down to explore this again. Rx used to run on winit, but I switched to glfw due to bugs and limitations in winit. This was a few years ago though, so maybe the situation has changed. |
I'm using the Sway window manager without XWayland support perfectly fine. I'm on Debian Stable, too, so it works even with "outdated" packages, too. |
This landed a while ago, so we'll be able to support it officially: PistonDevelopers/glfw-rs@66c263b |
Hi there!
First of all, thank you for developing RX. I've been using it for a while now and like it very much.
I am using Sway which uses Wayland instead of X11. I know there is xorg-server-xwayland package available but would like to ask whether Wayland will be natively supported or not?
When I try to run RX, it gives me this error:
I suppose the program complains about X11 missing from the system.
Unfortunately, I am not an experienced developer at all, therefore I cannot implement support for Wayland by myself and create a pull request right now.
Kind regards,
Makkusu
The text was updated successfully, but these errors were encountered: