diff --git a/src/maomao.c b/src/maomao.c index 8bcb1b3..ae6e1f5 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -7318,7 +7318,8 @@ void updatemons(struct wl_listener *listener, void *data) { config_head->state.x = m->m.x; config_head->state.y = m->m.y; - selmon = m; + if (!selmon) + selmon = m; wl_list_for_each(c, &clients, link) { if (c->mon && c->mon != m && client_surface(c)->mapped &&