diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-05-13 07:20:40 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-05-13 07:20:40 +0200 |
commit | 41af4406cbf88869ecf687ef536cb902e5f1ebd1 (patch) | |
tree | 11cb79dcd1fde140434918b740a95badcdc2548c /src/api/wayland | |
parent | ea20580719e0d89296f133dfb5285b99d19b1310 (diff) | |
parent | 9a144a6869a12e25dc4685fdf7ee86feb2bdf078 (diff) | |
download | glutin-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.rs | 4 |
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>>>, |