From 4cdddcfe466cb21db81af0ac39e51cc15f574da9 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 14 May 2024 16:45:01 +0100 Subject: cursor: minor fixes for unhiding surfaces the surface equality check is done in CPointerManager, the one in renderer can be wrong fixes #5975 --- src/managers/PointerManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/managers/PointerManager.cpp') 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); -- cgit v1.2.3