From 6fd934872a3c9f868bed5bd2f5ee33f0cb748912 Mon Sep 17 00:00:00 2001 From: tcmal Date: Tue, 13 Aug 2024 22:27:16 +0100 Subject: Move to one list of clients, shared across monitors --- src/focus.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/focus.rs') diff --git a/src/focus.rs b/src/focus.rs index 7a4b348..2415a91 100644 --- a/src/focus.rs +++ b/src/focus.rs @@ -13,8 +13,8 @@ impl WM<'_> { return; } - if let Some((mon, pos)) = self.clients.find_client_pos(e.event()) { - self.clients.refocus(&self.conn, mon, pos); + if let Some(pos) = self.clients.find_client_pos(e.event()) { + self.clients.refocus(&self.conn, pos); } } @@ -22,7 +22,7 @@ impl WM<'_> { pub fn handle_focus_in(&mut self, e: &FocusInEvent) { if !self.clients.is_focused(e.event()) { if let Some(pos) = self.clients.focused_pos() { - self.clients.refocus(&self.conn, pos.0, pos.1); + self.clients.refocus(&self.conn, pos); } } } -- cgit v1.2.3