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:
parent
af6419343d
commit
f2a58244c8
|
|
@ -121,9 +121,12 @@ pub fn window_builder<E>(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(feature = "wayland", target_os = "linux"))]
|
#[cfg(all(feature = "wayland", target_os = "linux"))]
|
||||||
if let Some(app_id) = &native_options.app_id {
|
{
|
||||||
use winit::platform::wayland::WindowBuilderExtWayland as _;
|
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 {
|
if let Some(min_size) = *min_window_size {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue