diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-10-31 00:14:08 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-31 00:14:08 +0000 |
| commit | 5e6cec962c780956177e56355ffc1d64cc5f83ca (patch) | |
| tree | 9277452bb7202094e8a2a2cac3acea7aaa964772 /src/managers/input/InputManager.hpp | |
| parent | 6ade4d58cab67e18aa758ef664e36421cab4d8b2 (diff) | |
cursor: refactor override handling (#12166)
much cleaner and more reliable. Should fix https://github.com/hyprwm/Hyprland/issues/12088
Diffstat (limited to 'src/managers/input/InputManager.hpp')
| -rw-r--r-- | src/managers/input/InputManager.hpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/managers/input/InputManager.hpp b/src/managers/input/InputManager.hpp index 60ff49ef..9fbf68b4 100644 --- a/src/managers/input/InputManager.hpp +++ b/src/managers/input/InputManager.hpp @@ -193,11 +193,7 @@ class CInputManager { uint32_t getModsFromAllKBs(); // for virtual keyboards: whether we should respect them as normal ones - bool shouldIgnoreVirtualKeyboard(SP<IKeyboard>); - - // for special cursors that we choose - void setCursorImageUntilUnset(std::string); - void unsetCursorImage(); + bool shouldIgnoreVirtualKeyboard(SP<IKeyboard>); std::string getNameForNewDevice(std::string); @@ -226,6 +222,7 @@ class CInputManager { CHyprSignalListener newVirtualKeyboard; CHyprSignalListener newVirtualMouse; CHyprSignalListener setCursor; + CHyprSignalListener overrideChanged; } m_listeners; bool m_cursorImageOverridden = false; @@ -282,16 +279,12 @@ class CInputManager { void setBorderCursorIcon(eBorderIconDirection); void setCursorIconOnBorder(PHLWINDOW w); - // temporary. Obeys setUntilUnset. - void setCursorImageOverride(const std::string& name); - // cursor surface struct { bool hidden = false; // null surface = hidden SP<CWLSurface> wlSurface; Vector2D vHotspot; std::string name; // if not empty, means set by name. - bool inUse = false; } m_cursorSurfaceInfo; void restoreCursorIconToApp(); // no-op if restored |
