Make platform::linux generic over X11 and Wayland.

This commit is contained in:
Victor Berger 2015-05-12 22:47:34 +02:00
parent 3279f15f9f
commit 310b44f35b
5 changed files with 347 additions and 10 deletions

View file

@ -147,6 +147,10 @@ lazy_static! {
};
}
pub fn is_available() -> bool {
WAYLAND_CONTEXT.is_some()
}
pub struct Window {
shell_surface: ShellSurface<EGLSurface>,
pending_events: Arc<Mutex<VecDeque<Event>>>,