diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index d82c129e420..9b851384141 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -824,6 +824,11 @@ impl WindowMethods for Window { NativeDisplay::new(ptr::null_mut()) } + #[cfg(not(target_os = "linux"))] + fn native_display(&self) -> NativeDisplay { + NativeDisplay::new() + } + /// Helper function to handle keyboard events. fn handle_key(&self, _: Key, _: constellation_msg::KeyModifiers) { }