1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Wait for xdg_surface to be configured.

Some compositors require configuration event to happen before getting
toplevel.
This commit is contained in:
Bartosz Taudul 2022-11-06 01:01:07 +01:00
parent a2f774dc20
commit 4d74968515
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -121,6 +121,8 @@ Backend::Backend( const char* title, std::function<void()> redraw, RunQueue* mai
s_eglWin = wl_egl_window_create( s_surf, m_winPos.w, m_winPos.h );
s_xdgSurf = xdg_wm_base_get_xdg_surface( s_wm, s_surf );
xdg_surface_add_listener( s_xdgSurf, &surfaceListener, nullptr );
wl_display_roundtrip( s_dpy );
s_toplevel = xdg_surface_get_toplevel( s_xdgSurf );
xdg_toplevel_add_listener( s_toplevel, &toplevelListener, nullptr );
xdg_toplevel_set_title( s_toplevel, title );