fix(client): use wlr_xwayland_surface.class instead of cls
CI Build Test / build-test (push) Canceled after 0s
CI Build Test / build-test (push) Canceled after 0s
wlroots 0.20 renamed the WM_CLASS field from cls to class, which broke compilation of client_get_appid().
This commit is contained in:
+1
-1
@@ -147,7 +147,7 @@ client_get_appid(Client *c)
|
|||||||
{
|
{
|
||||||
#ifdef XWAYLAND
|
#ifdef XWAYLAND
|
||||||
if (client_is_x11(c))
|
if (client_is_x11(c))
|
||||||
return c->surface.xwayland->cls ? c->surface.xwayland->cls : "broken";
|
return c->surface.xwayland->class ? c->surface.xwayland->class : "broken";
|
||||||
#endif
|
#endif
|
||||||
return c->surface.xdg->toplevel->app_id ? c->surface.xdg->toplevel->app_id : "broken";
|
return c->surface.xdg->toplevel->app_id ? c->surface.xdg->toplevel->app_id : "broken";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user