Default app_id to app_name on native (#8172)

### Related

* Closes #7872.

### What

On native (this is not limited to Wayland) we set the `app_id` to the
`app_name` if it is `None`.
This commit is contained in:
Jochen Görtler
2026-05-19 15:51:25 +02:00
committed by lucasmerlin
parent c86de5732d
commit cbb5a26da2
+3
View File
@@ -370,6 +370,9 @@ fn init_native(app_name: &str, native_options: &mut NativeOptions) -> Renderer {
if native_options.viewport.title.is_none() {
native_options.viewport.title = Some(app_name.to_owned());
}
if native_options.viewport.app_id.is_none() {
native_options.viewport.app_id = Some(app_name.to_owned());
}
let renderer = native_options.renderer;