mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
only set border color for urgent *and* mapped X11 clients
this fixes a segfault when the client emits .set_hints but it's not mapped
Fixes: 72a7d78a1a
This commit is contained in:
parent
6d9a915fb6
commit
887fde65a3
1 changed files with 4 additions and 1 deletions
5
dwl.c
5
dwl.c
|
@ -2756,8 +2756,11 @@ sethints(struct wl_listener *listener, void *data)
|
||||||
if (c == focustop(selmon))
|
if (c == focustop(selmon))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
client_set_border_color(c, urgentcolor);
|
|
||||||
c->isurgent = xcb_icccm_wm_hints_get_urgency(c->surface.xwayland->hints);
|
c->isurgent = xcb_icccm_wm_hints_get_urgency(c->surface.xwayland->hints);
|
||||||
|
|
||||||
|
if (c->isurgent && client_is_mapped(c))
|
||||||
|
client_set_border_color(c, urgentcolor);
|
||||||
|
|
||||||
printstatus();
|
printstatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue