1 // fn running_on_wayland() -> bool {
2 // let session_type = match env::var_os("XDG_SESSION_TYPE") {
3 // Some(session) => session.to_string_lossy().to_string(),
4 // None => return false
7 // session_type == "wayland"
12 #[cfg(feature = "use_xlib")]
14 println!("cargo:warning=Compiling with X11 dependencies.");
15 println!("cargo:rustc-flags=-lX11 -lXrandr");