From 14a2957d6cd4cc8d1ac6e2ba54a177eec833e8ab Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Wed, 1 May 2024 12:12:39 -0700 Subject: [PATCH] Only accessing wayland when wayland is enabled --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5674107..55622be 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -405,9 +405,9 @@ impl Windows { .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, "",