fix segfault on xwayland "appid"

This commit is contained in:
Devin J. Pohly 2020-07-21 18:43:26 -04:00
parent 57fef50310
commit a21c9378ee

2
dwl.c
View file

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