diff options
Diffstat (limited to 'src/managers/PointerManager.cpp')
| -rw-r--r-- | src/managers/PointerManager.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/managers/PointerManager.cpp b/src/managers/PointerManager.cpp index e116aa96..c16650be 100644 --- a/src/managers/PointerManager.cpp +++ b/src/managers/PointerManager.cpp @@ -15,6 +15,7 @@ #include "../render/Renderer.hpp" #include "../render/OpenGL.hpp" #include "SeatManager.hpp" +#include "../helpers/time/Time.hpp" #include <cstring> #include <gbm.h> #include <cairo/cairo.h> @@ -160,9 +161,7 @@ void CPointerManager::setCursorSurface(SP<CWLSurface> surf, const Vector2D& hots if (surf->resource()->current.texture) { currentCursorImage.size = surf->resource()->current.bufferSize; - timespec now; - clock_gettime(CLOCK_MONOTONIC, &now); - surf->resource()->frame(&now); + surf->resource()->frame(Time::steadyNow()); } } @@ -592,7 +591,7 @@ SP<Aquamarine::IBuffer> CPointerManager::renderHWCursorBuffer(SP<CPointerManager return buf; } -void CPointerManager::renderSoftwareCursorsFor(PHLMONITOR pMonitor, timespec* now, CRegion& damage, std::optional<Vector2D> overridePos) { +void CPointerManager::renderSoftwareCursorsFor(PHLMONITOR pMonitor, const Time::steady_tp& now, CRegion& damage, std::optional<Vector2D> overridePos) { if (!hasCursor()) return; |
