From ff25cf098d609eb56c93d4874ceb3d627c00dc51 Mon Sep 17 00:00:00 2001 From: Lasse Holmstedt Date: Thu, 23 Jun 2011 19:05:52 +0200 Subject: [PATCH] Add authentication token to public api MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Samuel Rødal --- src/qt-compositor/compositor_api/waylandsurface.cpp | 6 ++++++ src/qt-compositor/compositor_api/waylandsurface.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/qt-compositor/compositor_api/waylandsurface.cpp b/src/qt-compositor/compositor_api/waylandsurface.cpp index 6793152..90d9734 100644 --- a/src/qt-compositor/compositor_api/waylandsurface.cpp +++ b/src/qt-compositor/compositor_api/waylandsurface.cpp @@ -75,6 +75,12 @@ qint64 WaylandSurface::processId() const return d->surface->processId(); } +QByteArray WaylandSurface::authenticationToken() const +{ + Q_D(const WaylandSurface); + return d->surface->authenticationToken(); +} + void WaylandSurface::sendMousePressEvent(const QPoint &pos, Qt::MouseButton button) { Q_D(WaylandSurface); diff --git a/src/qt-compositor/compositor_api/waylandsurface.h b/src/qt-compositor/compositor_api/waylandsurface.h index 288c3dc..7ce59af 100644 --- a/src/qt-compositor/compositor_api/waylandsurface.h +++ b/src/qt-compositor/compositor_api/waylandsurface.h @@ -94,6 +94,7 @@ public: Wayland::Surface *handle() const; qint64 processId() const; + QByteArray authenticationToken() const; signals: void mapped(const QSize &size); -- 2.7.4