opt: update mon not change selmon if the selmon not null

This commit is contained in:
DreamMaoMao 2025-06-15 13:16:36 +08:00
parent 22665c8952
commit b8703d10b7

View file

@ -7318,6 +7318,7 @@ void updatemons(struct wl_listener *listener, void *data) {
config_head->state.x = m->m.x;
config_head->state.y = m->m.y;
if (!selmon)
selmon = m;
wl_list_for_each(c, &clients, link) {