
Here is wezterm on the right, using correct window decorations.
Neovide on the left, using something like default wayland decorations and no shadows.
It happens only on wayland, i checked xorg session, and it has correct decorations under xorg.
@last-partizan does alacritty provide the same weird decorations?
@Kethku yes, exactly the same.
That means this is an upstream issue. Could you raise it in the winit repository? I recommend linking to this one.
https://github.com/rust-windowing/winit/issues/306
They already have similar issue, and that's just "how wayland works".
Is there a way to tell neovide not to use wayland?
I have no idea. I'm very much not a linux expert. Would you be willing to look into it? I can answer any questions you might have.
we use glutin to create a gl context (which delegates most of the window creation work to winit).
My understanding is that there are multiple ways to get a gl context using x11 or wayland. A keyword that keeps coming up is egl, but I don't really know what the details are. One problem is that whatever solution we use must interact correctly with skia-safe which has limited support. I just fiddled with the settings until a combination seemed to work. Its possible that a different set of settings would work better.
I'll look into it.
Right now i'm searching gnome bug-tracker for related issues, and then i'll try to find workaroung for running neovide using x11.
I created issue for winit.
And looking for some ways to disable wayland. Oh, i found it: https://github.com/rust-windowing/winit/blob/c916eb613734b389d7add7efec7f698ca739bae2/src/platform_impl/linux/mod.rs#L50
src/neovide > WINIT_UNIX_BACKEND=x11 cargo run
Now neovim uses x11 and normal decorations.
Most helpful comment
I'll look into it.
Right now i'm searching gnome bug-tracker for related issues, and then i'll try to find workaroung for running neovide using x11.