diff options
Diffstat (limited to 'src/compositor/extensions/qwaylandshell.cpp')
-rw-r--r-- | src/compositor/extensions/qwaylandshell.cpp | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/compositor/extensions/qwaylandshell.cpp b/src/compositor/extensions/qwaylandshell.cpp index 8bd3e6ad..9865432e 100644 --- a/src/compositor/extensions/qwaylandshell.cpp +++ b/src/compositor/extensions/qwaylandshell.cpp @@ -88,12 +88,6 @@ QWaylandShellSurfacePrivate::~QWaylandShellSurfacePrivate() { } -void QWaylandShellSurfacePrivate::ping() -{ - uint32_t serial = m_surface->compositor()->nextSerial(); - ping(serial); -} - void QWaylandShellSurfacePrivate::ping(uint32_t serial) { m_pings.insert(serial); @@ -566,4 +560,22 @@ QWaylandSurfaceRole *QWaylandShellSurface::role() return &QWaylandShellSurfacePrivate::s_role; } +/*! + * \qmlmethod void QtWaylandCompositor::ShellSurface::ping() + * + * Sends a ping event to the client. If the client replies to the event the \a pong + * signal will be emitted. + */ + +/*! + * Sends a ping event to the client. If the client replies to the event the \a pong + * signal will be emitted. + */ +void QWaylandShellSurface::ping() +{ + Q_D(QWaylandShellSurface); + uint32_t serial = d->m_surface->compositor()->nextSerial(); + d->ping(serial); +} + QT_END_NAMESPACE |