From 1add0df5be43b09f06aae7936d27c3133e1d091d Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Fri, 8 Mar 2024 17:15:05 +0100 Subject: Client: Wire up surfaceRoleCreated/Destroyed signals Emit them after creating or destroying the shell surface. Change-Id: Ied54933ca0f0aec25cc288f7cfe191c85b37f543 Reviewed-by: Vlad Zahorodnii --- src/client/qwaylandwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client') diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp index 34250d113..7fc9f398b 100644 --- a/src/client/qwaylandwindow.cpp +++ b/src/client/qwaylandwindow.cpp @@ -184,6 +184,8 @@ void QWaylandWindow::initWindow() // the user may have already set some window properties, so make sure to send them out for (auto it = m_properties.cbegin(); it != m_properties.cend(); ++it) mShellSurface->sendProperty(it.key(), it.value()); + + emit surfaceRoleCreated(); } else { qWarning("Could not create a shell surface object."); } @@ -295,6 +297,7 @@ void QWaylandWindow::reset() mTransientParent->removeChildPopup(this); delete mShellSurface; mShellSurface = nullptr; + emit surfaceRoleDestroyed(); delete mSubSurfaceWindow; mSubSurfaceWindow = nullptr; mTransientParent = nullptr; -- cgit v1.2.3