From 0fcc4af42d38d63fe989616dda793ff71f7333a2 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 23 Jul 2021 19:58:42 +0300 Subject: [PATCH] Make SurfaceInterface::buffer() const --- src/wayland/surface_interface.cpp | 2 +- src/wayland/surface_interface.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/surface_interface.cpp b/src/wayland/surface_interface.cpp index a3d8b0ac14..081d901889 100644 --- a/src/wayland/surface_interface.cpp +++ b/src/wayland/surface_interface.cpp @@ -720,7 +720,7 @@ OutputInterface::Transform SurfaceInterface::bufferTransform() const return d->current.bufferTransform; } -ClientBuffer *SurfaceInterface::buffer() +ClientBuffer *SurfaceInterface::buffer() const { return d->bufferRef; } diff --git a/src/wayland/surface_interface.h b/src/wayland/surface_interface.h index 75603fd00d..ed9743bc8d 100644 --- a/src/wayland/surface_interface.h +++ b/src/wayland/surface_interface.h @@ -178,7 +178,7 @@ public: /** * @returns the current ClientBuffer, might be @c nullptr. */ - ClientBuffer *buffer(); + ClientBuffer *buffer() const; QPoint offset() const; /** * Returns the current size of the surface, in surface coordinates.