Add wayland app_id

see: 4ed0cafeef/stable/xdg-shell/xdg-shell.xml (L640)
This commit is contained in:
Paul Delafosse 2020-11-06 09:13:59 +01:00 committed by Héctor Ramón Jiménez
parent 45778ed598
commit 0586e48c70
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -103,6 +103,12 @@ impl Window {
.with_max_inner_size(winit::dpi::LogicalSize { width, height });
}
#[cfg(target_os = "linux")]
{
use ::winit::platform::unix::WindowBuilderExtUnix;
window_builder = window_builder.with_app_id(title.to_string());
}
#[cfg(target_os = "windows")]
{
use winit::platform::windows::WindowBuilderExtWindows;