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/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 5b15b9a..ec2475c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -145,7 +145,7 @@ impl<'a> WM<'a> { /// Handle some common client requests set out by the EWMH spec fn handle_client_message(&mut self, e: &ClientMessageEvent) { - let Some((mon, pos)) = self.clients.find_client_pos(e.window()) else { + let Some(pos) = self.clients.find_client_pos(e.window()) else { return; }; @@ -164,8 +164,8 @@ impl<'a> WM<'a> { return; } - let mon_geom = self.clients.mon_geometry(mon); - let c = self.clients.client_mut(mon, pos).unwrap(); + let mon_geom = self.clients.client_mon(pos).screen_info; + let c = self.clients.client_mut(pos); let fullscreen = match data[0] { 1 => true, 2 => !c.fullscreen(), -- cgit v1.2.3