mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Issue #7905: Restore "headless" build on not Linux platforms.
This commit is contained in:
parent
ec10b1708e
commit
28fdc02143
1 changed files with 5 additions and 0 deletions
|
@ -824,6 +824,11 @@ impl WindowMethods for Window {
|
||||||
NativeDisplay::new(ptr::null_mut())
|
NativeDisplay::new(ptr::null_mut())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(target_os = "linux"))]
|
||||||
|
fn native_display(&self) -> NativeDisplay {
|
||||||
|
NativeDisplay::new()
|
||||||
|
}
|
||||||
|
|
||||||
/// Helper function to handle keyboard events.
|
/// Helper function to handle keyboard events.
|
||||||
fn handle_key(&self, _: Key, _: constellation_msg::KeyModifiers) {
|
fn handle_key(&self, _: Key, _: constellation_msg::KeyModifiers) {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue