summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/qwlsurface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compositor/wayland_wrapper/qwlsurface.cpp')
-rw-r--r--src/compositor/wayland_wrapper/qwlsurface.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compositor/wayland_wrapper/qwlsurface.cpp b/src/compositor/wayland_wrapper/qwlsurface.cpp
index e63fcff25..5cd8bb506 100644
--- a/src/compositor/wayland_wrapper/qwlsurface.cpp
+++ b/src/compositor/wayland_wrapper/qwlsurface.cpp
@@ -338,8 +338,7 @@ Qt::ScreenOrientation Surface::contentOrientation() const
void Surface::surface_destroy_resource(Resource *)
{
if (m_extendedSurface) {
- if (m_extendedSurface->resource())
- wl_resource_destroy(m_extendedSurface->resource()->handle);
+ m_extendedSurface->setParentSurface(Q_NULLPTR);
m_extendedSurface = 0;
}