From f2a58244c8e27ceeb9a95abd2573bc9b20979ca3 Mon Sep 17 00:00:00 2001 From: jacekpoz <64381190+jacekpoz@users.noreply.github.com> Date: Thu, 10 Aug 2023 09:50:15 +0200 Subject: [PATCH] fix the title not being used when app_id is not set (#3107) Co-authored-by: jacekpoz --- crates/eframe/src/native/epi_integration.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/eframe/src/native/epi_integration.rs b/crates/eframe/src/native/epi_integration.rs index eeb7d485..faed7360 100644 --- a/crates/eframe/src/native/epi_integration.rs +++ b/crates/eframe/src/native/epi_integration.rs @@ -121,9 +121,12 @@ pub fn window_builder( } #[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 {