aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2025-06-14 22:27:25 +0200
committerGuido Cella <guido@guidocella.xyz>2025-06-14 22:27:25 +0200
commitea263a0ed50d62033ca305fe7a4c5c36fddb4755 (patch)
tree9b9636e2314c1a3d78444f7973830188c5138f41
parent67ff29eb953b135d95371b462fc8f14e89d839f0 (diff)
float sub-windows matching a rule
Currently when a rule that doesn't make windows floating matches, even sub-windows of float type get tiled rather than just the main window. This is inconsistent with dwm and other compositors. Fix this by making these windows floating after applying rules. Fixes #1142.
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 76b7755..12f441e 100644
--- a/dwl.c
+++ b/dwl.c
@@ -483,7 +483,6 @@ applyrules(Client *c)
const Rule *r;
Monitor *mon = selmon, *m;
- c->isfloating = client_is_float_type(c);
appid = client_get_appid(c);
title = client_get_title(c);
@@ -499,6 +498,8 @@ applyrules(Client *c)
}
}
}
+
+ c->isfloating |= client_is_float_type(c);
setmon(c, mon, newtags);
}