mirror of
https://github.com/danbulant/appit
synced 2026-06-17 05:11:25 +00:00
Only accessing wayland when wayland is enabled
This commit is contained in:
parent
afcae2d4c0
commit
14a2957d6c
1 changed files with 2 additions and 2 deletions
|
|
@ -405,9 +405,9 @@ impl<Message> Windows<Message> {
|
|||
.with_window_icon(attrs.window_icon)
|
||||
.with_theme(attrs.preferred_theme);
|
||||
|
||||
#[cfg(any(target_os = "linux", target_os = "windows"))]
|
||||
#[cfg(any(all(target_os = "linux", feature = "wayland"), target_os = "windows"))]
|
||||
if let Some(app_name) = &attrs.app_name {
|
||||
#[cfg(target_os = "linux")]
|
||||
#[cfg(all(target_os = "linux", feature = "wayland"))]
|
||||
{
|
||||
builder = winit::platform::wayland::WindowAttributesExtWayland::with_name(
|
||||
builder, app_name, "",
|
||||
|
|
|
|||
Loading…
Reference in a new issue