set the correct border color when mapping a client

This commit is contained in:
Leonardo Hernández Hernández 2023-12-07 21:44:53 -06:00
parent 80c9ad12ba
commit a760757b82
Failed to generate hash of commit

3
dwl.c
View file

@ -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;
}