diff options
author | Kai Uwe Broulik <kde@privat.broulik.de> | 2024-03-08 17:15:05 +0100 |
---|---|---|
committer | Kai Uwe Broulik <kde@privat.broulik.de> | 2024-04-17 16:25:13 +0000 |
commit | 1add0df5be43b09f06aae7936d27c3133e1d091d (patch) | |
tree | e197b490e4c47e09bb49a3f09b25854bc9157081 /src | |
parent | e9cb8644780c889a9ae2f1633df3ad2645229bb0 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/client/qwaylandwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |