Issue #7905: Restore "headless" build on not Linux platforms.

This commit is contained in:
Simon Martin 2015-10-10 16:18:20 +02:00
parent ec10b1708e
commit 28fdc02143

View file

@ -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) {
}