We'll need this to handle GL widgets.
{
QWaylandWindow *wParent = (QWaylandWindow *)parent;
- mSurface = wParent->surface();
- wParent->attach(mBuffer);
+ mParentWindow = wParent;
}
void QWaylandWindow::setVisible(bool visible)
QPlatformGLContext *glContext() const;
void attach(QWaylandBuffer *buffer);
QWaylandBuffer *getBuffer(void) { return mBuffer; }
+ QWaylandWindow *getParentWindow(void) { return mParentWindow; }
private:
struct wl_surface *mSurface;
WId mWindowId;
QWaylandBuffer *mBuffer;
+ QWaylandWindow *mParentWindow;
};
class QWaylandIntegration : public QPlatformIntegration