opt: if app open when no monitor, init tags and size in updatemons

This commit is contained in:
DreamMaoMao 2026-02-21 16:53:21 +08:00
parent 07aed60245
commit 3d680523d6

View file

@ -5958,6 +5958,10 @@ void updatemons(struct wl_listener *listener, void *data) {
c->mon = selmon;
reset_foreign_tolevel(c);
}
if(c->tags ==0 && !c->is_in_scratchpad) {
c->tags = selmon->tagset[selmon->seltags];
set_size_per(selmon,c);
}
}
focusclient(focustop(selmon), 1);
if (selmon->lock_surface) {