QWaylandEglWindow::QWaylandEglWindow(QWidget *window) : QWaylandWindow(window) , mGLContext(0) , mWaylandEglWindow(0) { mEglIntegration = static_cast<QWaylandEglIntegration *>(mDisplay->eglIntegration()); //super creates a new surface newSurfaceCreated(); }
void QWaylandWindow::setVisible(bool visible) { if (!mSurface && visible) { mSurface = mDisplay->createSurface(this); newSurfaceCreated(); } if (!visible) { wl_surface_destroy(mSurface); mSurface = NULL; } }
QWaylandShmWindow::QWaylandShmWindow(QWidget *widget) : QWaylandWindow(widget) { newSurfaceCreated(); }