From a21c9378ee7c9b1c4165a2df742a639b7393a322 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Tue, 21 Jul 2020 18:43:26 -0400 Subject: fix segfault on xwayland "appid" --- dwl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 99eafd7..da10035 100644 --- a/dwl.c +++ b/dwl.c @@ -287,6 +287,8 @@ applyrules(Client *c) if (!(title = c->xdg_surface->toplevel->title)) title = broken; } else { + if (!(appid = c->xwayland_surface->class)) + appid = broken; if (!(title = c->xwayland_surface->title)) title = broken; } -- cgit v1.2.3