diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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(), |