diff options
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 b6e4dca..86b42f9 100644 --- a/src/clients/mod.rs +++ b/src/clients/mod.rs @@ -210,7 +210,7 @@ impl ClientState { BORDER_WIDTH, ); c.set_border(conn, conn.colours.border_normal()); - c.set_floating(floating); + c.set_floating(conn, floating); c.ensure_mapped(conn); // TODO: updatewindowtype @@ -328,7 +328,7 @@ impl ClientState { /// Toggle whether the client with the given position is floating pub fn toggle_floating(&mut self, conn: &Connection<'_>, (mon, pos): (usize, usize)) { let c = &mut self.mons[mon].clients[pos]; - c.set_floating(!c.floating()); + c.set_floating(conn, !c.floating()); self.rearrange_monitor(conn, mon); } |