diff options
author | Giulio Camuffo <giulio.camuffo@kdab.com> | 2016-03-24 12:53:07 +0200 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@kdab.com> | 2016-03-29 12:11:07 +0000 |
commit | 8b89cef7d50325d576fc1206fda840a05b0578fb (patch) | |
tree | 74358e0f2971d5ae8e79f150a6fbac813887468a /src/compositor/extensions/qwaylandshell.h | |
parent | f3913dddee41b4a2c52518e720ac1945fde3bbab (diff) | |
download | qtwayland-8b89cef7d50325d576fc1206fda840a05b0578fb.tar.gz |
Add QWaylandShellSurface::fromResource()
Also make sure that the generated *::Resource::fromResource() code
returns null if it doesn't own the resource or if the interface is
wrong.
Change-Id: I904e0dd49dd6e535ef8cab6687c6869e1000048d
Reviewed-by: Johan Helsing <johan.helsing@theqtcompany.com>
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
Diffstat (limited to 'src/compositor/extensions/qwaylandshell.h')
-rw-r--r-- | src/compositor/extensions/qwaylandshell.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandshell.h b/src/compositor/extensions/qwaylandshell.h index 3b0d1c25..5fec80ff 100644 --- a/src/compositor/extensions/qwaylandshell.h +++ b/src/compositor/extensions/qwaylandshell.h @@ -122,6 +122,8 @@ public: static QByteArray interfaceName(); static QWaylandSurfaceRole *role(); + static QWaylandShellSurface *fromResource(wl_resource *res); + Q_INVOKABLE QSize sizeForResize(const QSizeF &size, const QPointF &delta, ResizeEdge edges); Q_INVOKABLE void sendConfigure(const QSize &size, ResizeEdge edges); Q_INVOKABLE void sendPopupDone(); |