summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA Frederick Christensen <dwl@ivories.org>2021-12-31 14:51:50 -0600
committerA Frederick Christensen <dwl@ivories.org>2021-12-31 14:51:50 -0600
commit317175da08aedf80f0bfaf71849feea531872a88 (patch)
tree5a57b6ce8a5f137fa7eb5b260c670135636ffc8d
parentf85d8e79d09bb167f133fbaa40dd01bc3d3d26a3 (diff)
Newly launched or closed clients ALWAYS generate status update
Prior to this change, if a client whose tag(s) are not currently selected is launched or killed, no update to status was printed and status bars being fed by printstatus() did not update newly active or newly inactive (but unselected) tags.
-rw-r--r--dwl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 8683462..fcd7700 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1320,6 +1320,7 @@ mapnotify(struct wl_listener *listener, void *data)
/* Set initial monitor, tags, floating status, and focus */
applyrules(c);
+ printstatus();
}
void
@@ -2290,6 +2291,7 @@ unmapnotify(struct wl_listener *listener, void *data)
setmon(c, NULL, 0);
wl_list_remove(&c->flink);
wl_list_remove(&c->slink);
+ printstatus();
}
void