aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/wayland
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-05-13 07:20:40 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-05-13 07:20:40 +0200
commit41af4406cbf88869ecf687ef536cb902e5f1ebd1 (patch)
tree11cb79dcd1fde140434918b740a95badcdc2548c /src/api/wayland
parentea20580719e0d89296f133dfb5285b99d19b1310 (diff)
parent9a144a6869a12e25dc4685fdf7ee86feb2bdf078 (diff)
downloadglutin-41af4406cbf88869ecf687ef536cb902e5f1ebd1.tar.gz
glutin-41af4406cbf88869ecf687ef536cb902e5f1ebd1.zip
Merge pull request #448 from vberger/x-wayland-split
Make platform::linux generic over X11 and Wayland
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>>>,