summaryrefslogtreecommitdiff
path: root/src/protocols/HyprlandSurface.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-01-26 15:05:34 +0000
committerVaxry <vaxry@vaxry.net>2025-01-26 15:05:34 +0000
commite9510115039e7ae9fcf2778e8455e7beed3424ea (patch)
tree1c1d313f51082ebeb096aa33e53efc490125c07d /src/protocols/HyprlandSurface.cpp
parent16aeb24bc1395b46d675ec3522ed452e487f5b69 (diff)
renderer/internal: stop using box pointers
in favor of const refs
Diffstat (limited to 'src/protocols/HyprlandSurface.cpp')
-rw-r--r--src/protocols/HyprlandSurface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/HyprlandSurface.cpp b/src/protocols/HyprlandSurface.cpp
index e3716f10..8b65f0fa 100644
--- a/src/protocols/HyprlandSurface.cpp
+++ b/src/protocols/HyprlandSurface.cpp
@@ -60,7 +60,7 @@ void CHyprlandSurface::setResource(SP<CHyprlandSurfaceV1> resource) {
auto box = surface->getSurfaceBoxGlobal();
if (box.has_value())
- g_pHyprRenderer->damageBox(&*box);
+ g_pHyprRenderer->damageBox(*box);
if (!m_pResource)
PROTO::hyprlandSurface->destroySurface(this);