-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
SURVEY: Lite XL on Wayland #449
Comments
I use it mostly under Wayfire which is a wayland compositor that uses wlroots and it works nicely as long as one uses default XWayland backend. It does gets laggy at rendering if one uses the SDL wayland backend by doing Besides the lag issue with wayland backend I have tested lite-xl on Gnome Wayland, KDE Plasma Wayland and Sway. On all of them it seems to work normally. Edit: |
Just for information, the linux binaries I provide are linked to SDL2 2.0.16 but this latter is compiled without Wayland support. It is important to know if people use lite-xl compiled by themselves, provided by the package manager or from the release package. In addition it seems that the SDL version matters a lot with the new 2.0.16 behaving a lot better. I think we should compile a table to sort all these different cases. |
In Arch, intel gpu, mesa 21.2.1, GNOME, SDL 2.0.16, with
Otherwise it is smooth. None of these problems appear when using |
OpenSuse Tumbleweed, intel gpu, Mesa 21.2.0, KDE Plasma, downloaded from releases.
However, with no setting on the variable (which I think defaults to |
I believe that this is to be expected:
According to https://wiki.libsdl.org/FAQUsingSDL the available options are |
okay, setting it to |
after compiling it from master myself using the latest freetype built from master and the latest sdl built from master, using |
Thank you for the report, I see there are quite some problems using wayland natively. When you compile yourself you may try the meson build option |
Sway on fedora (with Xwayland) |
Using the Wayland SDL backend without |
Running Archlinux on an Asus L210. I'm using Sway with Either I had a big black rectangle blocking the top half of the window (or rather not rendering correctly) or the window rendered correctly but the mouse had lots of issues. Eg. I clicked a folder and when I tried to move the mouse down to select a file the folder would collapse and hide the files again or sometimes the window wouldn't respond to mouse clicks Unfortunately it is in a unusable state at least on my specific configuration. |
Wayland is broken with KWin |
Much like this comment, lite-xl works great without, but with This is using river v0.1.0 with wl-roots v0.14.1 on Arch. One odd thing I noticed, settinging |
Please test with |
I'm not sure what you mean, that is what my comment is referring to. |
Just found this project, cool. First run (on Sway):
The very first run resulted in corrupted graphics: black, colored and "random looking" rectangles, they would come and go while operating the editor.
Trying a second time and leaving it open, I noticed only a dozen files in the file manager panel and tab bar, and the editor was functioning but so slow as to be inoperable. Killed. Still no graphic glitch, just the lower half of the window took half second to draw. A side note, I tried the |
gnome wayland. fedora 35. |
Thank you for sharing these details about the crash. What version of Lite XL you was using ? If you compiled the application by yourself did you use the standard "dev" packages from your distribution for SDL ? What version of SDL is your distribution providing ? |
If you used the latest release build, this is to be expected as it's compiled without wayland support. |
on fedora 35, with sway, lite-xl runs and is almost perfect albeit with the first glitch mentioned here but i also noticed one time that it discolored the entire window |
Testing with SDL from their git repo, the first paint problem doesn't seem to happen anymore. Can anyone test that too? |
I have used SDL2 from fedora repos. |
Looks legit to me, you just have to scroll around to use the editor :) |
Confirmed, built sdl from master |
Working on my 17 year old 32bit laptop using void linux, SDL 2.0.22 (sdl2-config --version), xwayland, with gnome 41.5. It also works using "SDL_VIDEODRIVER=wayland". (But I'm facing a issue. I can't launch lite-xl from overview. I can launch it only by opening a terminal. This does not happen on xorg) |
Does resizing work smoothly? |
Using a DE (gnome) it's not smooth (normal, since poor hardware, but other apps resize smoothly... But, using a WM (dwm, xorg) it's very smooth) |
I'm having the same experience on GNOME, but my hardware is decent. I wonder if this problem is caused by GNOME, SDL or us. |
You can try a different DE using wayland (KDE maybe?) |
Resizing is terribly slow for me on Fedora Silverblue 36 with the editor in Wayland mode. |
Try with If that works smoothly, I think that the problem is in libdecor itself https://gitlab.gnome.org/jadahl/libdecor/-/issues/37 |
Yes, it's perfectly smooth with |
Yeah scaling support is in the works in #998. |
No decorations on 43.1 with |
Is this self-compiled? |
Nope, it's from the github releases. |
What distro? |
Debian Testing x64. |
Mmm weird that it doesn't find it. We'll see if there is a way to statically link it. |
Works well on my machine (Arch Linux, Mesa 22.3.3, KDE Plasma 5.26.5, Lite XL 2.1.1 from AUR). I did notice that sometimes it was very glitchy, but I cannot reliably reproduce. I did notice that when it happened I got a lot of "exhausted command buffer" warnings, which I have heard are fixed in the next version of Lite XL. It does seem like scaling is being handled by KWin, leading to a rather blurry whole. Would be great if it integrated with LiteXL's built-in scaling! (I don't think this is specific to native-Wayland, but would still be quite nice.) |
If you disable config.borderless you'll get a border drawn by libdecor. Hopefully this is what you want. Other than that, we do have plans to improve the window decoration, since going forward we're most likely sticking to it on Wayland. There is currently no way to detect if the WM supports server side decorations via SDL, so this is the safest way on Wayland. |
Should bugs found with lite-xl (only) on Wayland be reported as new issues or here? |
Feel free to open new issues. |
Everything kinda works, it only launches natively if I open it from the terminal using lite-xl, but if I open it with wofi or rofi it opens with xwayland Edit: Scratch what I said about no issues, for some reason it doesn't follow the cursor correctly |
On mutter 45/46, the window size is not restored correctly if the app has been maximized, it will get into this glitched state: Screencast.from.2024-01-28.10-53-44.webmThe cursor also disappears sometimes. |
Yeah, I have that issue too |
@franko has been trying to collect Lite XL UX data on Wayland for a while now.
Some reported that Lite XL on wayland is extremely slow, eg #442 while others reported it's fine. For me, using Wayland straight up crashes Lite XL.
What's your experience using Lite XL on Wayland? Please describe your experience + some information about your computer.
Note: please use
SDL_VIDEODRIVER=wayland
to enable experimental Wayland support.The text was updated successfully, but these errors were encountered: