~ruther/dwl

887fde65a3010905aa10f373cfcfe540cfc1781e — Leonardo Hernández Hernández 1 year, 7 months ago 6d9a915
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: 72a7d78a1a7926a207539eb50f44b2e1eb089d49
1 files changed, 4 insertions(+), 1 deletions(-)

M dwl.c
M dwl.c => dwl.c +4 -1
@@ 2756,8 2756,11 @@ sethints(struct wl_listener *listener, void *data)
	if (c == focustop(selmon))
		return;

	client_set_border_color(c, urgentcolor);
	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();
}


Do not follow this link