diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2012-01-10 08:06:45 +0100 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2012-01-10 15:55:40 +0100 |
commit | bdabd7cc79709c8fb9c2c0187c5d6ac11ae85c5b (patch) | |
tree | 009875381a6f958f8e27f1c3d55a63e45f53d528 /src/compositor/wayland_wrapper/wlsurface.h | |
parent | e35d1a00541f3f2a1ed692a910b86f9344d12085 (diff) |
Cleanup Wayland::Surface's client handle logic
This is code which is either fairly old or where the api has changed.
Anyway, Surfaces allways have a client handle in the resource, so no
need to check it or store it.
Change-Id: If0be4bed177d42f168b5384a820b8e681e6d9539
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wlsurface.h')
-rw-r--r-- | src/compositor/wayland_wrapper/wlsurface.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compositor/wayland_wrapper/wlsurface.h b/src/compositor/wayland_wrapper/wlsurface.h index c7f139320..1edf1e72f 100644 --- a/src/compositor/wayland_wrapper/wlsurface.h +++ b/src/compositor/wayland_wrapper/wlsurface.h @@ -75,7 +75,7 @@ class Q_COMPOSITOR_EXPORT Surface : public Object<struct wl_surface> { Q_DECLARE_PRIVATE(Surface) public: - Surface(struct wl_client *client, Compositor *compositor); + Surface(struct wl_client *client, uint32_t id, Compositor *compositor); ~Surface(); WaylandSurface::Type type() const; @@ -118,7 +118,7 @@ public: void sendOnScreenVisibilityChange(bool visible); WaylandSurface *handle() const; - wl_client *clientHandle() const; + qint64 processId() const; void setProcessId(qint64 processId); QByteArray authenticationToken() const; |