Add new EventLoopWindowTargetExtUnix trait. (#1026)
* Add new `EventLoopWindowTargetExtUnix` trait. Signed-off-by: Hal Gentz <zegentzy@protonmail.com> * Slide. Signed-off-by: Hal Gentz <zegentzy@protonmail.com> * Travis, damn you. Signed-off-by: Hal Gentz <zegentzy@protonmail.com> * Update CHANGELOG.md
This commit is contained in:
parent
c0c22c8ff1
commit
cf0b8babbd
5 changed files with 89 additions and 72 deletions
|
|
@ -390,15 +390,17 @@ impl<T: 'static> EventLoop<T> {
|
|||
available_monitors(&self.outputs)
|
||||
}
|
||||
|
||||
pub fn display(&self) -> &Display {
|
||||
&*self.display
|
||||
}
|
||||
|
||||
pub fn window_target(&self) -> &RootELW<T> {
|
||||
&self.window_target
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> EventLoopWindowTarget<T> {
|
||||
pub fn display(&self) -> &Display {
|
||||
&*self.display
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Private EventLoop Internals
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue