diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-12-08 15:04:40 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-08 15:04:40 +0000 |
| commit | 920353370bba555010506a1c0b204675c60362fe (patch) | |
| tree | 87ba1036ecad6294a9c86dfc828ed2a356c810bd /src/managers/PointerManager.hpp | |
| parent | 834f019bab5df85b912a7aab7054fc8306f7c52a (diff) | |
desktop: cleanup, unify desktop elements as views (#12563)
Diffstat (limited to 'src/managers/PointerManager.hpp')
| -rw-r--r-- | src/managers/PointerManager.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/managers/PointerManager.hpp b/src/managers/PointerManager.hpp index 62a5d18f..e7294fd4 100644 --- a/src/managers/PointerManager.hpp +++ b/src/managers/PointerManager.hpp @@ -4,7 +4,7 @@ #include "../devices/ITouch.hpp" #include "../devices/Tablet.hpp" #include "../helpers/math/Math.hpp" -#include "../desktop/WLSurface.hpp" +#include "../desktop/view/WLSurface.hpp" #include "../helpers/sync/SyncTimeline.hpp" #include "../helpers/time/Time.hpp" #include <tuple> @@ -40,7 +40,7 @@ class CPointerManager { void warpAbsolute(Vector2D abs, SP<IHID> dev); void setCursorBuffer(SP<Aquamarine::IBuffer> buf, const Vector2D& hotspot, const float& scale); - void setCursorSurface(SP<CWLSurface> buf, const Vector2D& hotspot); + void setCursorSurface(SP<Desktop::View::CWLSurface> buf, const Vector2D& hotspot); void resetCursorImage(bool apply = true); void lockSoftwareForMonitor(PHLMONITOR pMonitor); @@ -140,16 +140,16 @@ class CPointerManager { } m_currentMonitorLayout; struct { - SP<Aquamarine::IBuffer> pBuffer; - SP<CTexture> bufferTex; - WP<CWLSurface> surface; + SP<Aquamarine::IBuffer> pBuffer; + SP<CTexture> bufferTex; + WP<Desktop::View::CWLSurface> surface; - Vector2D hotspot; - Vector2D size; - float scale = 1.F; + Vector2D hotspot; + Vector2D size; + float scale = 1.F; - CHyprSignalListener destroySurface; - CHyprSignalListener commitSurface; + CHyprSignalListener destroySurface; + CHyprSignalListener commitSurface; } m_currentCursorImage; // TODO: support various sizes per-output so we can have pixel-perfect cursors Vector2D m_pointerPos = {0, 0}; |
