Fix positioning when embedding native widgets such as QGLWidget