summaryrefslogtreecommitdiff
path: root/src/wm_info_provider.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wm_info_provider.rs')
-rw-r--r--src/wm_info_provider.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wm_info_provider.rs b/src/wm_info_provider.rs
index 2beff89..d598234 100644
--- a/src/wm_info_provider.rs
+++ b/src/wm_info_provider.rs
@@ -27,6 +27,11 @@ mod niri;
#[cfg(feature = "niri")]
pub use niri::*;
+#[cfg(feature = "mango")]
+mod mango;
+#[cfg(feature = "mango")]
+pub use mango::*;
+
pub trait WmInfoProvider: Any {
fn register(&self, _: &mut EventLoop) {}
@@ -70,6 +75,11 @@ pub fn bind(conn: &mut Connection<State>, config: &WmConfig) -> Box<dyn WmInfoPr
return Box::new(niri);
}
+ #[cfg(feature = "mango")]
+ if let Some(mango) = MangoInfoProvider::new() {
+ return Box::new(mango);
+ }
+
Box::new(DummyInfoProvider)
}