Publish 0.8.1 with fixes necessary for glutin (#296)
This commit is contained in:
parent
6a2a7036d4
commit
15fbc0dff4
4 changed files with 50 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue