From 4dd5c83f72d69f9d772d3793f138cac2505b0c30 Mon Sep 17 00:00:00 2001 From: ArchercatNEO Date: Sat, 22 Nov 2025 08:27:00 +0000 Subject: [PATCH] Wayland: compile with libdecor=no --- platform/linuxbsd/wayland/display_server_wayland.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linuxbsd/wayland/display_server_wayland.cpp b/platform/linuxbsd/wayland/display_server_wayland.cpp index 6bdbdb87582..dc40fce79e1 100644 --- a/platform/linuxbsd/wayland/display_server_wayland.cpp +++ b/platform/linuxbsd/wayland/display_server_wayland.cpp @@ -1536,10 +1536,11 @@ Error DisplayServerWayland::embed_process(WindowID p_window, OS::ProcessID p_pid ERR_FAIL_NULL_V(ws, ERR_BUG); struct xdg_toplevel *toplevel = ws->xdg_toplevel; - +#ifdef LIBDECOR_ENABLED if (toplevel == nullptr && ws->libdecor_frame) { toplevel = libdecor_frame_get_xdg_toplevel(ws->libdecor_frame); } +#endif ERR_FAIL_NULL_V(toplevel, ERR_CANT_CREATE);