1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-28 16:07:14 +00:00

Wayland: compile with libdecor=no

This commit is contained in:
ArchercatNEO
2025-11-22 08:27:00 +00:00
parent 235a32ad11
commit 4dd5c83f72

View File

@@ -1536,10 +1536,11 @@ Error DisplayServerWayland::embed_process(WindowID p_window, OS::ProcessID p_pid
ERR_FAIL_NULL_V(ws, ERR_BUG); ERR_FAIL_NULL_V(ws, ERR_BUG);
struct xdg_toplevel *toplevel = ws->xdg_toplevel; struct xdg_toplevel *toplevel = ws->xdg_toplevel;
#ifdef LIBDECOR_ENABLED
if (toplevel == nullptr && ws->libdecor_frame) { if (toplevel == nullptr && ws->libdecor_frame) {
toplevel = libdecor_frame_get_xdg_toplevel(ws->libdecor_frame); toplevel = libdecor_frame_get_xdg_toplevel(ws->libdecor_frame);
} }
#endif
ERR_FAIL_NULL_V(toplevel, ERR_CANT_CREATE); ERR_FAIL_NULL_V(toplevel, ERR_CANT_CREATE);