From 980f5fdfdc45184daa2a87d5f34ac79d106b20af Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Tue, 19 Apr 2016 10:05:49 +0300 Subject: [PATCH] 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 --- src/plugins/platforms/wayland/qwaylandsubsurface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/wayland/qwaylandsubsurface.cpp b/src/plugins/platforms/wayland/qwaylandsubsurface.cpp index ec813609fd2..254c0766b41 100644 --- a/src/plugins/platforms/wayland/qwaylandsubsurface.cpp +++ b/src/plugins/platforms/wayland/qwaylandsubsurface.cpp @@ -53,6 +53,7 @@ QWaylandSubSurface::QWaylandSubSurface(QWaylandWindow *window, QWaylandWindow *p QWaylandSubSurface::~QWaylandSubSurface() { m_parent->mChildren.removeOne(this); + destroy(); } }