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 8860a359fd
commit 8de9c000e3
3 changed files with 81 additions and 18 deletions

View file

@ -1355,3 +1355,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();
}