diff options
author | Riteo <riteo@posteo.net> | 2024-07-15 22:11:24 +0200 |
---|---|---|
committer | Riteo <riteo@posteo.net> | 2024-07-15 22:11:24 +0200 |
commit | a852e76196559852278a59672cb5b0e6a8336d59 (patch) | |
tree | 1e706d3d3be49ff485344ae2d0c054cfbbee095e /platform/linuxbsd/wayland/wayland_thread.cpp | |
parent | 97b8ad1af0f2b4a216f6f1263bef4fbc69e56c7b (diff) | |
download | redot-engine-a852e76196559852278a59672cb5b0e6a8336d59.tar.gz |
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.
Diffstat (limited to 'platform/linuxbsd/wayland/wayland_thread.cpp')
-rw-r--r-- | platform/linuxbsd/wayland/wayland_thread.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/linuxbsd/wayland/wayland_thread.cpp b/platform/linuxbsd/wayland/wayland_thread.cpp index 7bdc75db29..0ba49f900e 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); } |