From eaf5b67370f17f1fd9a3d4e7f62fdcd34f3d543c Mon Sep 17 00:00:00 2001 From: Bill Doyle Date: Tue, 19 Nov 2024 11:18:56 -0500 Subject: Add support for niri workspaces (#39) --- src/shared_state.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared_state.rs') diff --git a/src/shared_state.rs b/src/shared_state.rs index 1970c0c..f2b8144 100644 --- a/src/shared_state.rs +++ b/src/shared_state.rs @@ -23,4 +23,8 @@ impl SharedState { pub fn get_hyprland(&mut self) -> Option<&mut wm_info_provider::HyprlandInfoProvider> { self.wm_info_provider.as_any().downcast_mut() } + + pub fn get_niri(&mut self) -> Option<&mut wm_info_provider::NiriInfoProvider> { + self.wm_info_provider.as_any().downcast_mut() + } } -- cgit v1.3.1