From a852e76196559852278a59672cb5b0e6a8336d59 Mon Sep 17 00:00:00 2001 From: Riteo Date: Mon, 15 Jul 2024 22:11:24 +0200 Subject: [PATCH] Wayland: commit surface on window creation This is needed for initializing xdg_surfaces when not using libdecor. Now the pure xdg_shell code path should work again. --- platform/linuxbsd/wayland/wayland_thread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/linuxbsd/wayland/wayland_thread.cpp b/platform/linuxbsd/wayland/wayland_thread.cpp index 7bdc75db298..0ba49f900e5 100644 --- a/platform/linuxbsd/wayland/wayland_thread.cpp +++ b/platform/linuxbsd/wayland/wayland_thread.cpp @@ -3245,6 +3245,8 @@ void WaylandThread::window_create(DisplayServer::WindowID p_window_id, int p_wid zxdg_exported_v1_add_listener(ws.xdg_exported, &xdg_exported_listener, &ws); } + wl_surface_commit(ws.wl_surface); + // Wait for the surface to be configured before continuing. wl_display_roundtrip(wl_display); }