Add wayland app_id
see: 4ed0cafeef/stable/xdg-shell/xdg-shell.xml (L640)
This commit is contained in:
parent
45778ed598
commit
0586e48c70
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue