Match winit unix targets for wayland app_id

This commit is contained in:
Paul Delafosse 2020-11-10 08:51:38 +01:00 committed by Héctor Ramón Jiménez
parent 0586e48c70
commit e3bc050aae
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -103,7 +103,13 @@ impl Window {
.with_max_inner_size(winit::dpi::LogicalSize { width, height });
}
#[cfg(target_os = "linux")]
#[cfg(any(
target_os = "linux",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
{
use ::winit::platform::unix::WindowBuilderExtUnix;
window_builder = window_builder.with_app_id(title.to_string());