From f2617a671f7003a57a52e6f84afc6903e0a824f6 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 4 Jan 2018 21:56:01 +0100 Subject: [PATCH] Add a roundtrip after creating the xdg-surface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The specification says we must not attach a buffer until we’ve received a configure event. --- src/wl_window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wl_window.c b/src/wl_window.c index 5ec810bc..b78233af 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -420,6 +420,7 @@ static GLFWbool createXdgSurface(_GLFWwindow* window) } wl_surface_commit(window->wl.surface); + wl_display_roundtrip(_glfw.wl.display); return GLFW_TRUE; }