1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

fix the title not being used when app_id is not set (#3107)

Co-authored-by: jacekpoz <jacekpoz@cock.li>
This commit is contained in:
jacekpoz
2023-08-10 09:50:15 +02:00
committed by GitHub
parent af6419343d
commit f2a58244c8

View File

@@ -121,9 +121,12 @@ pub fn window_builder<E>(
}
#[cfg(all(feature = "wayland", target_os = "linux"))]
if let Some(app_id) = &native_options.app_id {
{
use winit::platform::wayland::WindowBuilderExtWayland as _;
window_builder = window_builder.with_name(app_id, "");
match &native_options.app_id {
Some(app_id) => window_builder = window_builder.with_name(app_id, ""),
None => window_builder = window_builder.with_name(title, ""),
}
}
if let Some(min_size) = *min_window_size {