Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-11-06 03:01:07 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-11-06 03:01:07 +0300
commit4d7496851567ae00e2c33d1ef5fddf0db9275fa4 (patch)
tree9b1681eb8ea6a3cc8eb2edc23e3bec05b0d4f94d
parenta2f774dc2036562cec0f221670f25e1b1edd08a4 (diff)
Wait for xdg_surface to be configured.
Some compositors require configuration event to happen before getting toplevel.
-rw-r--r--profiler/src/BackendWayland.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/profiler/src/BackendWayland.cpp b/profiler/src/BackendWayland.cpp
index 9bbad64c..bdbe45d7 100644
--- a/profiler/src/BackendWayland.cpp
+++ b/profiler/src/BackendWayland.cpp
@@ -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 );