mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #7957 - simartin:ticket_7905, r=mbrubeck
Issue #7905: Restore "headless" build on not Linux platforms. Fix https://github.com/servo/servo/issues/7905 by implementing WindowMethods' native_display in headless mode on "not Linux" platforms. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7957) <!-- Reviewable:end -->
This commit is contained in:
commit
6303126e0c
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue