From 53eacd7996dae397cf02f5bb9a8d849aaeeb7418 Mon Sep 17 00:00:00 2001 From: tcmal Date: Thu, 4 Jul 2024 22:26:11 +0100 Subject: set transient windows to floating --- src/clients/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/clients/mod.rs') 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 -- cgit v1.2.3