summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 4cfa4db..a7d41b0 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2593,7 +2593,8 @@ urgent(struct wl_listener *listener, void *data)
if (!c || c == focustop(selmon))
return;
- client_set_border_color(c, urgentcolor);
+ if (client_is_mapped(c))
+ client_set_border_color(c, urgentcolor);
c->isurgent = 1;
printstatus();
}