summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@theqtcompany.com>2015-09-18 12:43:43 +0200
committerPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-09-18 14:56:58 +0000
commitb2a27f4beb417ca884612f6af520f81c1a745143 (patch)
treec9791e8c99b0c4aba50ad08e0f24b331f6da7ff3
parentee50284f495219db2097f9a93ebe3ab325e44ff8 (diff)
Hook up the QWaylandQuickItem::surfaceDestroyed
Change-Id: I8551318190782a2426ff9d03fbe881a0cdc7016a Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
-rw-r--r--src/compositor/compositor_api/qwaylandquickitem_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandquickitem_p.h b/src/compositor/compositor_api/qwaylandquickitem_p.h
index 0f1237cc2..72d202431 100644
--- a/src/compositor/compositor_api/qwaylandquickitem_p.h
+++ b/src/compositor/compositor_api/qwaylandquickitem_p.h
@@ -89,6 +89,7 @@ public:
QObject::connect(q, &QQuickItem::windowChanged, q, &QWaylandQuickItem::updateWindow);
QObject::connect(view.data(), &QWaylandView::surfaceChanged, q, &QWaylandQuickItem::surfaceChanged);
QObject::connect(view.data(), &QWaylandView::surfaceChanged, q, &QWaylandQuickItem::handleSurfaceChanged);
+ QObject::connect(view.data(), &QWaylandView::surfaceDestroyed, q, &QWaylandQuickItem::surfaceDestroyed);
}
bool shouldSendInputEvents() const { return view->surface() && inputEventsEnabled; }