Handle xwayland not started (when HAVE_XWAYLAND, but lacking the binary)

Closes https://github.com/labwc/labwc/issues/434
This commit is contained in:
Daniel Lublin 2026-02-25 10:40:39 +01:00 committed by Johan Malm
parent 4e25347791
commit fee38bceca
5 changed files with 37 additions and 14 deletions

View file

@ -54,6 +54,8 @@ view_from_wlr_surface(struct wlr_surface *surface)
return xdg_surface->data;
}
#if HAVE_XWAYLAND
// Doing this is harmless even in the case that xwayland could not be
// successfully started.
struct wlr_xwayland_surface *xsurface =
wlr_xwayland_surface_try_from_wlr_surface(surface);
if (xsurface) {