summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@kdab.com>2016-04-19 10:05:49 +0300
committerGiulio Camuffo <giulio.camuffo@kdab.com>2016-04-19 07:33:23 +0000
commit26e27845a43319d0ecad0c6392f05d1ed50da2a2 (patch)
tree0918818fb2c9dbaea8a23d54a6ce42c203b0e617
parent7b9ff873fc6b55a26e43753c738ebd941c796e29 (diff)
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>
-rw-r--r--src/client/qwaylandsubsurface.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/qwaylandsubsurface.cpp b/src/client/qwaylandsubsurface.cpp
index ec813609f..254c0766b 100644
--- a/src/client/qwaylandsubsurface.cpp
+++ b/src/client/qwaylandsubsurface.cpp
@@ -53,6 +53,7 @@ QWaylandSubSurface::QWaylandSubSurface(QWaylandWindow *window, QWaylandWindow *p
QWaylandSubSurface::~QWaylandSubSurface()
{
m_parent->mChildren.removeOne(this);
+ destroy();
}
}