mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Add Windows support for handle_event
This commit is contained in:
parent
721693c43e
commit
c65598907e
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ impl Window {
|
||||||
self.event_queue.borrow_mut().push(WindowEvent::MouseWindowEventClass(event));
|
self.event_queue.borrow_mut().push(WindowEvent::MouseWindowEventClass(event));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(any(target_os = "macos", target_os = "windows"))]
|
||||||
fn handle_next_event(&self) -> bool {
|
fn handle_next_event(&self) -> bool {
|
||||||
let event = self.window.wait_events().next().unwrap();
|
let event = self.window.wait_events().next().unwrap();
|
||||||
let mut close = self.handle_window_event(event);
|
let mut close = self.handle_window_event(event);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue