Add a roundtrip after creating the xdg-surface

The specification says we must not attach a buffer until we’ve received
a configure event.
This commit is contained in:
Emmanuel Gil Peyrot 2018-01-04 21:56:01 +01:00 committed by linkmauve
parent 4778d02c67
commit f2617a671f

View File

@ -420,6 +420,7 @@ static GLFWbool createXdgSurface(_GLFWwindow* window)
}
wl_surface_commit(window->wl.surface);
wl_display_roundtrip(_glfw.wl.display);
return GLFW_TRUE;
}