summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/input/InputManager.hpp')
-rw-r--r--src/managers/input/InputManager.hpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/managers/input/InputManager.hpp b/src/managers/input/InputManager.hpp
index 670bc4da..b4d365ee 100644
--- a/src/managers/input/InputManager.hpp
+++ b/src/managers/input/InputManager.hpp
@@ -229,15 +229,22 @@ class CInputManager {
void setBorderCursorIcon(eBorderIconDirection);
void setCursorIconOnBorder(CWindow* w);
+ // temporary. Obeys setUntilUnset.
+ void setCursorImageOverride(const std::string& name);
+
// cursor surface
- // struct cursorSI {
- // wlr_surface* pSurface = nullptr;
- // Vector2D vHotspot;
- // bool bUsed = false;
- // } cursorSurfaceInfo;
- // DYNLISTENER(CursorSurfaceDestroy);
+ struct cursorSI {
+ bool hidden = false; // null surface = hidden
+ CWLSurface wlSurface;
+ Vector2D vHotspot;
+ std::string name; // if not empty, means set by name.
+ bool inUse = false;
+ } m_sCursorSurfaceInfo;
+
+ void restoreCursorIconToApp(); // no-op if restored
friend class CKeybindManager;
+ friend class CWLSurface;
};
inline std::unique_ptr<CInputManager> g_pInputManager;