From c65598907efcf4feeb9bd1b9390f4163a1baf18d Mon Sep 17 00:00:00 2001 From: Lars Bergstrom Date: Thu, 7 Jan 2016 07:27:41 -0600 Subject: [PATCH] Add Windows support for handle_event --- ports/glutin/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index 2052a77f2b1..076ace8383d 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -285,7 +285,7 @@ impl Window { 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 { let event = self.window.wait_events().next().unwrap(); let mut close = self.handle_window_event(event);