diff options
Diffstat (limited to 'src/hardwareintegration/compositor/xcomposite_share/xcompositebuffer.h')
-rw-r--r-- | src/hardwareintegration/compositor/xcomposite_share/xcompositebuffer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hardwareintegration/compositor/xcomposite_share/xcompositebuffer.h b/src/hardwareintegration/compositor/xcomposite_share/xcompositebuffer.h index b3f1cf3a9..73a66d3af 100644 --- a/src/hardwareintegration/compositor/xcomposite_share/xcompositebuffer.h +++ b/src/hardwareintegration/compositor/xcomposite_share/xcompositebuffer.h @@ -41,6 +41,9 @@ #define XCOMPOSITEBUFFER_H #include <qwayland-server-wayland.h> + +#include <QtWaylandCompositor/private/qwaylandutils_p.h> + #include <QtWaylandCompositor/QWaylandSurface> #include <QtWaylandCompositor/QWaylandCompositor> @@ -68,7 +71,7 @@ public: QSize size() const { return mSize; } - static XCompositeBuffer *fromResource(struct ::wl_resource *resource) { return static_cast<XCompositeBuffer*>(Resource::fromResource(resource)->buffer_object); } + static XCompositeBuffer *fromResource(struct ::wl_resource *resource) { return QtWayland::fromResource<XCompositeBuffer *>(resource); } protected: void buffer_destroy_resource(Resource *) override; |