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

@ -583,6 +583,8 @@ server_init(void)
server.workspace_tree = lab_wlr_scene_tree_create(&server.scene->tree);
server.xdg_popup_tree = lab_wlr_scene_tree_create(&server.scene->tree);
#if HAVE_XWAYLAND
// Creating/setting this is harmless when xwayland support is built-in
// but xwayland could not be successfully started.
server.unmanaged_tree = lab_wlr_scene_tree_create(&server.scene->tree);
#endif
server.menu_tree = lab_wlr_scene_tree_create(&server.scene->tree);