diff options
Diffstat (limited to 'src/clients/mod.rs')
-rw-r--r-- | src/clients/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/clients/mod.rs b/src/clients/mod.rs index 445c24c..b6e4dca 100644 --- a/src/clients/mod.rs +++ b/src/clients/mod.rs @@ -174,7 +174,9 @@ impl ClientState { /// Start managing the given window, adding it to the client list and ensuring its configuration is valid. pub fn manage(&mut self, conn: &Connection<'_>, window: Window) { let mut mon = self.focused_mon(); + let mut floating = false; if let Some(parent) = hints::transient_for(conn, window) { + floating = true; if let Some((parent_mon, _)) = self.find_client_pos(parent) { mon = parent_mon; } @@ -208,6 +210,7 @@ impl ClientState { BORDER_WIDTH, ); c.set_border(conn, conn.colours.border_normal()); + c.set_floating(floating); c.ensure_mapped(conn); // TODO: updatewindowtype |