aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Bergstrom <lars@lars.com>2016-01-07 07:27:41 -0600
committerLars Bergstrom <lars@lars.com>2016-01-22 19:28:39 -0600
commitc65598907efcf4feeb9bd1b9390f4163a1baf18d (patch)
tree08e92bc8c6238e88db66437a2d333a266b61febd
parent721693c43eacfb74dc83ef811224339ba1426a90 (diff)
downloadservo-c65598907efcf4feeb9bd1b9390f4163a1baf18d.tar.gz
servo-c65598907efcf4feeb9bd1b9390f4163a1baf18d.zip
Add Windows support for handle_event
-rw-r--r--ports/glutin/window.rs2
1 files changed, 1 insertions, 1 deletions
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);