~ruther/dwl

662e06e68e9bc2c41c3cb90d36c4d9998ff1f958 — Leonardo Hernández Hernández 2 years ago 9d2eb84
check client_from_wlr_surface() returning NULL in urgent()

fix #281
1 files changed, 1 insertions(+), 1 deletions(-)

M dwl.c
M dwl.c => dwl.c +1 -1
@@ 2377,7 2377,7 @@ urgent(struct wl_listener *listener, void *data)
{
	struct wlr_xdg_activation_v1_request_activate_event *event = data;
	Client *c = client_from_wlr_surface(event->surface);
	if (c != selclient()) {
	if (c && c != selclient()) {
		c->isurgent = 1;
		printstatus();
	}

Do not follow this link