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.
This commit is contained in:
Riteo 2024-07-15 22:11:24 +02:00
parent 97b8ad1af0
commit a852e76196
1 changed files with 2 additions and 0 deletions

View File

@ -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); 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. // Wait for the surface to be configured before continuing.
wl_display_roundtrip(wl_display); wl_display_roundtrip(wl_display);
} }