From e6d583df4243e18707dfabbf375b57d811f07bf3 Mon Sep 17 00:00:00 2001 From: tcmal Date: Fri, 30 Aug 2024 15:12:09 +0100 Subject: Only change focus within current workspace with keyboard --- src/clients/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/clients/mod.rs b/src/clients/mod.rs index 6481c0f..da341ba 100644 --- a/src/clients/mod.rs +++ b/src/clients/mod.rs @@ -295,11 +295,13 @@ impl ClientState { return; } + let tag_focus = self.focused_mon().focused_tag; let curr_focused = self.focused_client.unwrap_or(0); let look_through = self .clients .iter() .enumerate() + .filter(|(_, c)| tag_focus.matches(c.tag)) .filter(|(_, c)| self.focused_mon().screen_info.contains(c.x(), c.y())) .map(|(i, _)| i); -- cgit v1.2.3