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

@ -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

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