summaryrefslogtreecommitdiff
path: root/src/focus.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-13 22:27:16 +0100
committertcmal <me@aria.rip>2024-08-14 17:45:21 +0100
commit6fd934872a3c9f868bed5bd2f5ee33f0cb748912 (patch)
tree13f844d164ac7ffe44484ad24bed50ef6393b776 /src/focus.rs
parentf9d5af7f060ada6f224861967e31bb74a0d24e18 (diff)
Move to one list of clients, shared across monitors
Diffstat (limited to 'src/focus.rs')
-rw-r--r--src/focus.rs6
1 files changed, 3 insertions, 3 deletions
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);
}
}
}