diff options
author | tcmal <me@aria.rip> | 2024-07-15 19:19:01 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-07-15 19:25:02 +0100 |
commit | 1a87db1097d9d594c28963c66c627f3c66bcf6de (patch) | |
tree | a93a5a4da14569ede01a0e5cdfaa47d92e784a10 /src/clients/mod.rs | |
parent | 5d2a23a5d618725b75ba77d7185601e5439801c5 (diff) |
set fullscreen based on ewm hints
Diffstat (limited to 'src/clients/mod.rs')
-rw-r--r-- | src/clients/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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); |