diff options
Diffstat (limited to 'src/compositor/extensions/qwaylandquickwlshellsurfaceitem.cpp')
-rw-r--r-- | src/compositor/extensions/qwaylandquickwlshellsurfaceitem.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/compositor/extensions/qwaylandquickwlshellsurfaceitem.cpp b/src/compositor/extensions/qwaylandquickwlshellsurfaceitem.cpp index fc6d856d8..a385e5e4e 100644 --- a/src/compositor/extensions/qwaylandquickwlshellsurfaceitem.cpp +++ b/src/compositor/extensions/qwaylandquickwlshellsurfaceitem.cpp @@ -110,6 +110,7 @@ void QWaylandQuickWlShellSurfaceItem::setShellSurface(QWaylandWlShellSurface *sh connect(d->shellSurface, &QWaylandWlShellSurface::startMove, this, &QWaylandQuickWlShellSurfaceItem::handleStartMove); connect(d->shellSurface, &QWaylandWlShellSurface::startResize, this, &QWaylandQuickWlShellSurfaceItem::handleStartResize); } + setSurface(shellSurface ? shellSurface->surface() : nullptr); emit shellSurfaceChanged(); } @@ -226,16 +227,4 @@ void QWaylandQuickWlShellSurfaceItem::surfaceChangedEvent(QWaylandSurface *newSu connect(newSurface, &QWaylandSurface::offsetForNextFrame, this, &QWaylandQuickWlShellSurfaceItem::adjustOffsetForNextFrame); } -/*! - * \internal - */ -void QWaylandQuickWlShellSurfaceItem::componentComplete() -{ - Q_D(QWaylandQuickWlShellSurfaceItem); - if (!d->shellSurface) - setShellSurface(new QWaylandWlShellSurface()); - - QWaylandQuickItem::componentComplete(); -} - QT_END_NAMESPACE |