opt: avoid stack inner per change when switch tty

This commit is contained in:
DreamMaoMao 2026-02-04 21:29:37 +08:00
parent 4d0f7faed7
commit 6a39481362

View file

@ -5755,7 +5755,8 @@ void updatemons(struct wl_listener *listener, void *data) {
if (selmon && selmon->wlr_output->enabled) {
wl_list_for_each(c, &clients, link) {
if (!c->mon && client_surface(c)->mapped) {
client_change_mon(c, selmon);
c->mon = selmon;
reset_foreign_tolevel(c);
}
}
focusclient(focustop(selmon), 1);