aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/wayland
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/wayland')
-rw-r--r--src/api/wayland/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/wayland/mod.rs b/src/api/wayland/mod.rs
index f70d62e..4fd0357 100644
--- a/src/api/wayland/mod.rs
+++ b/src/api/wayland/mod.rs
@@ -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>>>,