From ae5d6f8ea1ca3602af447a5b9064d6b9789bd7d3 Mon Sep 17 00:00:00 2001 From: chenyc Date: Tue, 22 Apr 2025 17:21:31 +0800 Subject: [PATCH] fix: fix spawn_on_empty not based on the selmon --- src/maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index 866c81b..ed8128f 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -5692,7 +5692,7 @@ void spawn_on_empty(const Arg *arg) { Client *c; wl_list_for_each(c, &clients, link) { - if (arg->ui & c->tags) { + if (arg->ui & c->tags && c->mon == selmon) { is_empty = false; break; }