Add ability to get wayland display from events loop. (#829)

Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
This commit is contained in:
Hal Gentz 2019-04-07 23:07:47 -06:00 committed by Victor Berger
parent 47194b5f3c
commit 746e99c958
3 changed files with 20 additions and 1 deletions

View file

@ -287,6 +287,10 @@ impl<T: 'static> EventLoop<T> {
get_available_monitors(&self.outputs)
}
pub fn get_display(&self) -> &Display {
&*self.display
}
pub fn window_target(&self) -> &RootELW<T> {
&self.window_target
}