Publish 0.8.1 with fixes necessary for glutin (#296)

This commit is contained in:
tomaka 2017-09-23 09:36:30 +02:00 committed by GitHub
parent 6a2a7036d4
commit 15fbc0dff4
4 changed files with 50 additions and 1 deletions

View file

@ -382,6 +382,22 @@ impl EventsLoop {
EventsLoop::X(ref mut evlp) => evlp.run_forever(callback)
}
}
#[inline]
pub fn is_wayland(&self) -> bool {
match *self {
EventsLoop::Wayland(_) => true,
EventsLoop::X(_) => false,
}
}
#[inline]
pub fn x_connection(&self) -> Option<&Arc<XConnection>> {
match *self {
EventsLoop::Wayland(_) => None,
EventsLoop::X(ref ev) => Some(ev.x_connection()),
}
}
}
impl EventsLoopProxy {