mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
Handle xwayland not started (when HAVE_XWAYLAND, but lacking the binary)
Closes https://github.com/labwc/labwc/issues/434
This commit is contained in:
parent
4e25347791
commit
fee38bceca
5 changed files with 37 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue