修复一些配置不能热重载

This commit is contained in:
DreamMaoMao 2025-02-20 12:26:38 +08:00
parent 6f05de6512
commit 1ac2b14675
3 changed files with 10 additions and 826 deletions

View file

@ -874,6 +874,16 @@ void parse_config(void) {
}
void reload_config(const Arg *arg) {
Client *c;
free_config();
parse_config();
init_baked_points();
wl_list_for_each(c, &clients, link) {
if (c&& !c->iskilling) {
if (c->bw) {
c->bw = borderpx;
}
}
}
arrange(selmon,false);
}