summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-12-07 21:44:53 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-12-07 21:44:53 -0600
commita760757b82eb10ce09a890e0a5ea1c76de22b144 (patch)
tree0a71e324fb16df19d7bc5b1bd02ef974aea628c9
parent80c9ad12ba81ab54ac6aad8b413a158d1de52705 (diff)
set the correct border color when mapping a client
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 670e95f..b4d91b6 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1528,7 +1528,8 @@ mapnotify(struct wl_listener *listener, void *data)
}
for (i = 0; i < 4; i++) {
- c->border[i] = wlr_scene_rect_create(c->scene, 0, 0, bordercolor);
+ c->border[i] = wlr_scene_rect_create(c->scene, 0, 0,
+ c->isurgent ? urgentcolor : bordercolor);
c->border[i]->node.data = c;
}