mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 05:40:04 -04:00
Make platform::linux generic over X11 and Wayland.
This commit is contained in:
@@ -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>>>,
|
||||
|
||||
Reference in New Issue
Block a user