opt: optimize config reload fresh

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

View File

@@ -3177,5 +3177,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) ||