From f624edb8014dd1e3469b42628d9fc26b157bf8ea Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Mon, 19 May 2025 14:24:10 -0700 Subject: [PATCH] Fix running on the native target without the Linux Wayland platform --- node-graph/graph-craft/src/wasm_application_io.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node-graph/graph-craft/src/wasm_application_io.rs b/node-graph/graph-craft/src/wasm_application_io.rs index 59a386b3..8f579fc4 100644 --- a/node-graph/graph-craft/src/wasm_application_io.rs +++ b/node-graph/graph-craft/src/wasm_application_io.rs @@ -208,14 +208,14 @@ impl ApplicationIo for WasmApplicationIo { fn create_window(&self) -> SurfaceHandle { log::trace!("Spawning window"); - #[cfg(not(test))] + #[cfg(all(not(test), target_os = "linux", feature = "wayland"))] use winit::platform::wayland::EventLoopBuilderExtWayland; - #[cfg(not(test))] + #[cfg(all(not(test), target_os = "linux", feature = "wayland"))] let event_loop = winit::event_loop::EventLoopBuilder::new().with_any_thread(true).build().unwrap(); - - #[cfg(test)] + #[cfg(not(all(not(test), target_os = "linux", feature = "wayland")))] let event_loop = winit::event_loop::EventLoop::new().unwrap(); + let window = winit::window::WindowBuilder::new() .with_title("Graphite") .with_inner_size(winit::dpi::PhysicalSize::new(800, 600))