diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-01-05 12:44:30 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2018-01-11 10:08:21 +0000 |
commit | 583ce658c38700b22d93329634d676b288118da4 (patch) | |
tree | c68594cd8dcf047571e9dd9be0ddb6746ef7c20f | |
parent | 70fc4900ee70e786b615e1f31201564b946fd0ac (diff) | |
download | qtwayland-583ce658c38700b22d93329634d676b288118da4.tar.gz |
Fix protocol error when destroying xdg surfaces (v6)
Destroy role object for toplevels when destroying the xdg surface.
Task-number: QTBUG-65568
Change-Id: Ibe027c3eef8160f9fd2cfb05971c92ceb155f95b
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
-rw-r--r-- | src/client/qwaylandxdgshellv6.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/qwaylandxdgshellv6.cpp b/src/client/qwaylandxdgshellv6.cpp index cd81778c..7473174d 100644 --- a/src/client/qwaylandxdgshellv6.cpp +++ b/src/client/qwaylandxdgshellv6.cpp @@ -125,6 +125,8 @@ QWaylandXdgSurfaceV6::QWaylandXdgSurfaceV6(QWaylandXdgShellV6 *shell, ::zxdg_sur QWaylandXdgSurfaceV6::~QWaylandXdgSurfaceV6() { + if (m_toplevel) + zxdg_toplevel_v6_destroy(m_toplevel->object()); if (m_popup) zxdg_popup_v6_destroy(m_popup->object()); destroy(); |