From 1a87db1097d9d594c28963c66c627f3c66bcf6de Mon Sep 17 00:00:00 2001 From: tcmal Date: Mon, 15 Jul 2024 19:19:01 +0100 Subject: set fullscreen based on ewm hints --- src/clients/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/clients/mod.rs') diff --git a/src/clients/mod.rs b/src/clients/mod.rs index c370e04..37a88c0 100644 --- a/src/clients/mod.rs +++ b/src/clients/mod.rs @@ -193,7 +193,7 @@ impl ClientState { // TODO: inserting at index 0 is why dwm uses linked lists, maybe this can be improved self.mons[mon].clients.insert(0, Client::new(window)); - let MonitorGeometry { + let mon_geom @ MonitorGeometry { width: mon_width, height: mon_height, .. @@ -213,7 +213,7 @@ impl ClientState { if floating { c.set_floating(conn); } - c.update_window_type(conn); + c.update_window_type(conn, &mon_geom); c.ensure_mapped(conn); c.sync_properties(conn, true); -- cgit v1.2.3