-
Notifications
You must be signed in to change notification settings - Fork 3k
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 #97
Comments
Agreed, would love to get this working with my window manager. I hate having to specify |
Thank you so much for filing the tracking issue. This is very helpful for me! |
I would love to run alacritty on Wayland. What changes have you to made to glutin that requires a separate branch? Would it be easy to merge those changes into a newer version of glutin that supports Wayland? |
@jwilm Is all that is necessary to make native Wayland work to merge the changes of your branch with a newer version of glutin? (I'm aware that there may have been breakage in glutin since, and this may not be as easy as I made it sound.) |
With #554 rebased onto master and using upstream winit master, I can confirm alacritty runs natively on Wayland. There still seems to be a couple of regressions that need to be fixed though. |
Awesome! Once there's a stable release, I'll add it as an option on the way-cooler download page. I'll probably make it the default option, since using our current default (weston-terminal) requires having weston as a dependency. |
We've just updated to the latest Glutin/winit. Anyone want to take it for a spin on Wayland? |
Yep, I just tried it. Turns out sway doesn't have a new enough version of the
|
Just tried it out and the workaround presented earlier in this thread is no longer needed. However there are some things that are not working as expected: |
I believe the only way to get GTK decorations is to use their APIs to create the window. This is a general issue when using Wayland.
Sounds like a winit bug
Where should an icon be shown? Which icon should be shown? I'm not familiar with Gnome 3 to understand the issue here. |
Sway and Way Cooler will not support this, not until they move to wlroots, because it only supports seat version 5. This is also why I can't use glutin to make my guis for Way Cooler. Expect this situation to improve over the coming months. Alternatively, someone can update the seat interface used in wlc. |
This is the output of xprop for alacritty under X11:
Looks like Alacritty is reporting a name via |
@auscompgeek The equivalent in Wayland is wl_shell_surface::set_class, though I thought this should be handled by glutin. |
I think I'm having trouble with getting an
|
Alacritty doesn't have the
|
@jwilm I meant to type |
@nixpulvis ohhhhh, gotcha. That might be an issue with |
@esphen Did you ever find a workaround for Sway not supporting a new enough |
@kirbyfan64 sway will use a new one when it switches to wlroots, which will happen soon (tm) |
Setting window title with -t also does not seem to work on Wayland with latest 0.2.5. While it works on X. |
Wayland startup time is still quite slow. The fix in #782 (bumping I'm on swaywm 1.0 ( |
Since Alacritty's Wayland support is now quite usable thanks to the work done by winit, this issue does not appear to be relevant anymore. Specific problems should be handled in separate issues. |
How's it now ? Is it stable for everyone on wayland ? Or do you see any noticable difference between x session & wayland ? |
Try it. |
Tq will do. I'm currently on gnome & alacritty works flawlessly except those white borders (Idc anyways. It actually looks cool). |
We just do damage tracking, but not partial redraws, since on GPU it's a bit more tricky. But we'll do that eventually. |
That would be amazing if pulled off btw. Caz alacritty break it's own performance records. |
As you say in the README, wayland is not supported as of now. However, I would still like to file a tracking issue for this so that people interested (like me) can be notified when this is built. Right now alacritty panics because I am using a wayland wm.
Care to comment on what remains to be done? Maybe someone can pitch in
EDIT:
It is possible to run alacritty on a Wayland desktop today if you have XWayland and run alacritty like this:
env WAYLAND_DISPLAY= alacritty
The text was updated successfully, but these errors were encountered: