Make platform::linux generic over X11 and Wayland.
This commit is contained in:
parent
3279f15f9f
commit
310b44f35b
5 changed files with 347 additions and 10 deletions
|
|
@ -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>>>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue