summaryrefslogtreecommitdiff
path: root/src/shared_state.rs
diff options
context:
space:
mode:
authorMaxVerevkin <maxxverrr@gmail.com>2023-09-07 00:47:28 +0300
committerMaxVerevkin <maxxverrr@gmail.com>2023-09-07 00:47:28 +0300
commit74cc46a2383db5538d7e0392e4b79b7287775e9b (patch)
tree6f5c2c026c0822dd71a645836eb085677a090d4c /src/shared_state.rs
parenteefff9a9cc2ee6f17eab3431cc808d5a5e7d31fc (diff)
downloadi3bar-mango-74cc46a2383db5538d7e0392e4b79b7287775e9b.tar.gz
hyprland again
Diffstat (limited to 'src/shared_state.rs')
-rw-r--r--src/shared_state.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared_state.rs b/src/shared_state.rs
index a4ff48f..50ab77a 100644
--- a/src/shared_state.rs
+++ b/src/shared_state.rs
@@ -19,4 +19,8 @@ impl SharedState {
pub fn get_river(&mut self) -> Option<&mut wm_info_provider::RiverInfoProvider> {
self.wm_info_provider.as_mut()?.as_any().downcast_mut()
}
+
+ pub fn get_hyprland(&mut self) -> Option<&mut wm_info_provider::Hyprland> {
+ self.wm_info_provider.as_mut()?.as_any().downcast_mut()
+ }
}