Closed avitran0 closed 2 weeks ago
My guess would be that this is a winit issue, can you try running one of the winit examples to see if the same thing happens there?
just tried that, it indeed seems to be a winit issue. thank you.
@avitran0 did you find / open a winit issue? If so, please link it here, so others can easily find it if they have the same problem.
i opened one here. this seems to be wayland-specific, because the wayland server does not provide window decorations, the client has to do it themselves. winit draws the decorations itself with the sctk crate, and not with libdecor or gtk, which is why it does not look like other system decorations. when running with sudo, it runs under x11, whose server does provide decorations.
to force winit to run under x11, you can use std::env::remove_var("WAYLAND_DISPLAY");
before the egui/eframe initialization. this will also make options like hiding the maximize button work.
on winit versions before 0.29.2, you would have to use std::env::set_var("WINIT_UNIX_BACKEND", "x11");
.
Describe the bug when starting any egui application on my system the window decorations are borked. when running the program with sudo, the decorations are fine.
To Reproduce Steps to reproduce the behavior:
Expected behavior window decorations should work without sudo
Screenshots without sudo: with sudo:
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context running default fedora install with gnome, wayland and a nvidia gpu. all other applications have working window decorations.