diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2015-01-28 15:40:34 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2015-01-28 15:40:34 +1000 |
commit | e936349cdfa7fd9b40dcbd5d269070a29562e24b (patch) | |
tree | fbcf45cd3d1b38c4bc41f3ea96d48af9213e60b9 | |
parent | 3f9012864a2cd927cf17a8e11dfa6922add1b7df (diff) | |
download | servo-e936349cdfa7fd9b40dcbd5d269070a29562e24b.tar.gz servo-e936349cdfa7fd9b40dcbd5d269070a29562e24b.zip |
Temporary workaround for change in wait_events behaviour in glutin
-rw-r--r-- | ports/glutin/window.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index 6af9481a85c..80261c3c33b 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -307,7 +307,11 @@ impl Window { } } } else { - for event in self.window.wait_events() { + // GWTODO: Something has changed in the wait_events + // behaviour in glutin. Switching to poll events + // for now, so that things display correctly, + // need to fix glutin / handle the changed behaviour. + for event in self.window.poll_events() { close_event = self.handle_window_event(event); if close_event { break; |