diff options
author | tcmal <me@aria.rip> | 2024-08-13 22:27:16 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-14 17:45:21 +0100 |
commit | 6fd934872a3c9f868bed5bd2f5ee33f0cb748912 (patch) | |
tree | 13f844d164ac7ffe44484ad24bed50ef6393b776 /src/main.rs | |
parent | f9d5af7f060ada6f224861967e31bb74a0d24e18 (diff) |
Move to one list of clients, shared across monitors
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(), |