opt: optimize config reload fresh

This commit is contained in:
DreamMaoMao 2025-11-01 16:50:45 +08:00
parent 54779e3cbd
commit f06dc505e3
2 changed files with 5 additions and 0 deletions

View file

@ -3045,5 +3045,6 @@ void reset_option(void) {
int reload_config(const Arg *arg) { int reload_config(const Arg *arg) {
parse_config(); parse_config();
reset_option(); reset_option();
printstatus();
return 0; return 0;
} }

View file

@ -134,6 +134,10 @@ void dwl_ext_workspace_printstatus(Monitor *m) {
if (!w->m->pertag->no_hide[w->tag]) if (!w->m->pertag->no_hide[w->tag])
wlr_ext_workspace_handle_v1_set_hidden(w->ext_workspace, wlr_ext_workspace_handle_v1_set_hidden(w->ext_workspace,
true); true);
else {
wlr_ext_workspace_handle_v1_set_hidden(w->ext_workspace,
false);
}
} }
if ((m->tagset[m->seltags] & (1 << (w->tag - 1)) & TAGMASK) || if ((m->tagset[m->seltags] & (1 << (w->tag - 1)) & TAGMASK) ||