feat: add setoption dispatch to allow change option by mmsg

This commit is contained in:
DreamMaoMao
2025-10-08 13:39:31 +08:00
parent 96d5143f4c
commit 0419a00e0b
3 changed files with 81 additions and 18 deletions

View File

@@ -1353,3 +1353,9 @@ void zoom(const Arg *arg) {
focusclient(sel, 1);
arrange(selmon, false);
}
void setoption(const Arg *arg) {
parse_option(&config, arg->v, arg->v2);
override_config();
reset_option();
}