Destroy the subsurface protocol objects

This fixes a protocol error the compositor would send when a window
changes its parent, because we were creating a new subsurface without
destroying the old one.

Change-Id: I0855d0582153e0aff37be508d9fb43d22c9ad0b5
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
This commit is contained in:
Giulio Camuffo 2016-04-19 10:05:49 +03:00
parent d77d934874
commit 980f5fdfdc

View File

@ -53,6 +53,7 @@ QWaylandSubSurface::QWaylandSubSurface(QWaylandWindow *window, QWaylandWindow *p
QWaylandSubSurface::~QWaylandSubSurface()
{
m_parent->mChildren.removeOne(this);
destroy();
}
}