mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-10 13:29:55 -05:00
feat: support stack layout config hot reload
This commit is contained in:
parent
faa14ff272
commit
defaedb365
2 changed files with 15 additions and 1 deletions
|
|
@ -1210,6 +1210,8 @@ void parse_config(void) {
|
|||
|
||||
void reload_config(const Arg *arg) {
|
||||
Client *c;
|
||||
Monitor *m;
|
||||
int i;
|
||||
Keyboard *kb;
|
||||
free_config();
|
||||
parse_config();
|
||||
|
|
@ -1224,5 +1226,16 @@ void reload_config(const Arg *arg) {
|
|||
wl_list_for_each(kb, &keyboards, link) {
|
||||
wlr_keyboard_set_repeat_info(kb->wlr_keyboard, repeat_rate, repeat_delay);
|
||||
}
|
||||
|
||||
for (i = 0; i <= LENGTH(tags); i++) {
|
||||
wl_list_for_each(m, &mons, link) {
|
||||
if (!m->wlr_output->enabled) {
|
||||
continue;
|
||||
}
|
||||
m->pertag->nmasters[i] = default_nmaster;
|
||||
m->pertag->mfacts[i] = default_mfact;
|
||||
m->pertag->smfacts[i] = default_smfact;
|
||||
}
|
||||
}
|
||||
arrange(selmon, false);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue