-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
No window title when running egui-app on Wayland #992
Comments
AFAIK, the only cross-platform way to do this is creating the window without decorations and drawing client-side decorations, handling drag and double-click events in platform-specific ways, etc. And doing nothing on Android, iOS, and web platforms because they don't have window decorations anyway (at least the decorations cannot be controlled by On the other hand, doing this client-side decorations thing only for Wayland might be an acceptable way to "plug the leak". |
A lot of egui users have been making their own decorations, so it is definitely possible (see for instance https://www.youtube.com/watch?v=NtUkr_z7l84). It would be very nice with an official eframe example for how to make your own window decoration. Related to this: we need to fix #943 and add support for minimizing the native window. |
There is an example of painting your own window frame in https://github.com/emilk/egui/tree/master/examples/custom_window_frame |
I tried the example on Wayland, and the close button doesn't work. Once I clicked the close button, other buttons stop working. But then after I drag the window for a bit, it seems other buttons ( which control the theme) fall back to normal. However, the close button still doesn't do it's job after dragging. |
@Krysme have you tried debugging it? Is |
For all dependents Closes emilk#992
To do this for my own app I had to resize the title space. What seemed to be happening is the horizontal layout was overlapping the close button. See https://gitlab.com/asus-linux/asusctl/-/blob/main/rog-control-center/src/widgets/top_bar.rs#L50 |
Closed by #1914 |
Describe the bug
There's no window title in window header when egui app is running on Wayland
To Reproduce
Steps to reproduce the behavior:
cd egui
cargo run --bin egui_demo_app
Window header is solid white.
Expected behavior
Window header contains window title that is returned by epi::App::name
Screenshots
See above
Desktop (please complete the following information):
Additional context
I understand that it's a winit/client-toolkit bug, see Smithay/client-toolkit#196
Basically neither winit nor client-toolkit want to mess with font rendering. Yet it affects egui. It would be nice to be able to render window decorations at egui level.
The text was updated successfully, but these errors were encountered: