From 26e27845a43319d0ecad0c6392f05d1ed50da2a2 Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Tue, 19 Apr 2016 10:05:49 +0300 Subject: 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/client/qwaylandsubsurface.cpp | 1 + 1 file changed, 1 insertion(+) 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(); } } -- cgit v1.2.3