diff options
author | tcmal <me@aria.rip> | 2024-07-04 22:26:11 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-07-04 22:26:11 +0100 |
commit | 53eacd7996dae397cf02f5bb9a8d849aaeeb7418 (patch) | |
tree | 95d6be81235e3680e1ce1292458f56a01fe7ff6c /src/clients | |
parent | b9778944ba27e1deeec1be2bdc286790e6274470 (diff) |
set transient windows to floating
Diffstat (limited to 'src/clients')
-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 |