summaryrefslogtreecommitdiff
path: root/src/managers/PointerManager.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-05-14 16:45:01 +0100
committerVaxry <vaxry@vaxry.net>2024-05-14 16:45:12 +0100
commit4cdddcfe466cb21db81af0ac39e51cc15f574da9 (patch)
treeb611a07bb07de0d29d082eb2d168f2c236a6c5cf /src/managers/PointerManager.cpp
parentd0a4a0e0d8ecc0a47c0bcfbf84c090cae8cee7af (diff)
cursor: minor fixes for unhiding surfaces
the surface equality check is done in CPointerManager, the one in renderer can be wrong fixes #5975
Diffstat (limited to 'src/managers/PointerManager.cpp')
-rw-r--r--src/managers/PointerManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/PointerManager.cpp b/src/managers/PointerManager.cpp
index 663456f8..3ddd7c23 100644
--- a/src/managers/PointerManager.cpp
+++ b/src/managers/PointerManager.cpp
@@ -223,7 +223,7 @@ void CPointerManager::setCursorSurface(CWLSurface* surf, const Vector2D& hotspot
},
nullptr, "CPointerManager");
- if (surf->wlr()->current.buffer) {
+ if (wlr_surface_has_buffer(surf->wlr())) {
timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
wlr_surface_send_frame_done(surf->wlr(), &now);