summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/clients/mod.rs2
1 files changed, 2 insertions, 0 deletions
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);