summaryrefslogtreecommitdiff
path: root/src/clients/mod.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-07-04 22:26:11 +0100
committertcmal <me@aria.rip>2024-07-04 22:26:11 +0100
commit53eacd7996dae397cf02f5bb9a8d849aaeeb7418 (patch)
tree95d6be81235e3680e1ce1292458f56a01fe7ff6c /src/clients/mod.rs
parentb9778944ba27e1deeec1be2bdc286790e6274470 (diff)
set transient windows to floating
Diffstat (limited to 'src/clients/mod.rs')
-rw-r--r--src/clients/mod.rs3
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