diff --git a/src/clients/compositor/mod.rs b/src/clients/compositor/mod.rs index e9397a8..8d07ddc 100644 --- a/src/clients/compositor/mod.rs +++ b/src/clients/compositor/mod.rs @@ -74,9 +74,7 @@ impl Compositor { debug!("Getting keyboard_layout client for: {current}"); match current { #[cfg(feature = "bindmode+sway")] - Self::Sway => clients - .sway() - .map(|client| client as Arc), + Self::Sway => Ok(clients.sway()?), #[cfg(feature = "bindmode+hyprland")] Self::Hyprland => Ok(clients.hyprland()), #[cfg(feature = "niri")] @@ -98,9 +96,7 @@ impl Compositor { debug!("Getting keyboard_layout client for: {current}"); match current { #[cfg(feature = "keyboard+sway")] - Self::Sway => clients - .sway() - .map(|client| client as Arc), + Self::Sway => Ok(clients.sway()?), #[cfg(feature = "keyboard+hyprland")] Self::Hyprland => Ok(clients.hyprland()), #[cfg(feature = "niri")] @@ -126,9 +122,7 @@ impl Compositor { debug!("Getting workspace client for: {current}"); match current { #[cfg(feature = "workspaces+sway")] - Self::Sway => clients - .sway() - .map(|client| client as Arc), + Self::Sway => Ok(clients.sway()?), #[cfg(feature = "workspaces+hyprland")] Self::Hyprland => Ok(clients.hyprland()), #[cfg(feature = "workspaces+niri")]