summaryrefslogtreecommitdiff
path: root/src/focus.rs
diff options
context:
space:
mode:
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);
}
}
}