summaryrefslogtreecommitdiffstats
path: root/src/compositor/extensions/qwaylandxdgshellv5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compositor/extensions/qwaylandxdgshellv5.cpp')
-rw-r--r--src/compositor/extensions/qwaylandxdgshellv5.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshellv5.cpp b/src/compositor/extensions/qwaylandxdgshellv5.cpp
index 284aa8b05..a14f58e05 100644
--- a/src/compositor/extensions/qwaylandxdgshellv5.cpp
+++ b/src/compositor/extensions/qwaylandxdgshellv5.cpp
@@ -531,6 +531,16 @@ void QWaylandXdgShellV5::initialize()
this, &QWaylandXdgShellV5::handleSeatChanged);
}
+QWaylandClient *QWaylandXdgShellV5::popupClient() const
+{
+ Q_D(const QWaylandXdgShellV5);
+ Q_FOREACH (QWaylandXdgPopupV5 *popup, d->m_xdgPopups) {
+ if (popup->surface()->hasContent())
+ return popup->surface()->client();
+ }
+ return nullptr;
+}
+
/*!
* Returns the Wayland interface for the QWaylandXdgShellV5.
*/