Client: Wire up surfaceRoleCreated/Destroyed signals

Emit them after creating or destroying the shell surface.

Change-Id: Ied54933ca0f0aec25cc288f7cfe191c85b37f543
Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
This commit is contained in:
Kai Uwe Broulik 2024-03-08 17:15:05 +01:00
parent 2962aa9ed9
commit 01f102b2f9

View File

@ -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;