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

@@ -64,4 +64,5 @@ void toggle_render_border(const Arg *arg);
void create_virtual_output(const Arg *arg);
void destroy_all_virtual_output(const Arg *arg);
void focuslast(const Arg *arg);
void toggle_trackpad_enable(const Arg *arg);
void toggle_trackpad_enable(const Arg *arg);
void setoption(const Arg *arg);

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();
}