File tree 1 file changed +4
-4
lines changed
node-graph/graph-craft/src
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -208,14 +208,14 @@ impl ApplicationIo for WasmApplicationIo {
208
208
fn create_window ( & self ) -> SurfaceHandle < Self :: Surface > {
209
209
log:: trace!( "Spawning window" ) ;
210
210
211
- #[ cfg( not( test) ) ]
211
+ #[ cfg( all ( not( test) , target_os = "linux" , feature = "wayland" ) ) ]
212
212
use winit:: platform:: wayland:: EventLoopBuilderExtWayland ;
213
213
214
- #[ cfg( not( test) ) ]
214
+ #[ cfg( all ( not( test) , target_os = "linux" , feature = "wayland" ) ) ]
215
215
let event_loop = winit:: event_loop:: EventLoopBuilder :: new ( ) . with_any_thread ( true ) . build ( ) . unwrap ( ) ;
216
-
217
- #[ cfg( test) ]
216
+ #[ cfg( not( all( not( test) , target_os = "linux" , feature = "wayland" ) ) ) ]
218
217
let event_loop = winit:: event_loop:: EventLoop :: new ( ) . unwrap ( ) ;
218
+
219
219
let window = winit:: window:: WindowBuilder :: new ( )
220
220
. with_title ( "Graphite" )
221
221
. with_inner_size ( winit:: dpi:: PhysicalSize :: new ( 800 , 600 ) )
You can’t perform that action at this time.
0 commit comments