diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-28 23:06:46 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-28 23:06:46 +0000 |
| commit | 07b98952bc09f61d85895c49504b681de8687975 (patch) | |
| tree | e082e7146b06c4bd984bfb28d8b1a0c10e316255 /src/managers/input/InputManager.hpp | |
| parent | cd2399715d84ac4bfa07acc2afe1ade7a2fbb3a2 (diff) | |
Reset cursor to pointer on focus on interactable deco
Diffstat (limited to 'src/managers/input/InputManager.hpp')
| -rw-r--r-- | src/managers/input/InputManager.hpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/managers/input/InputManager.hpp b/src/managers/input/InputManager.hpp index af31118c..797dea92 100644 --- a/src/managers/input/InputManager.hpp +++ b/src/managers/input/InputManager.hpp @@ -7,18 +7,21 @@ #include "../../helpers/Timer.hpp" #include "InputMethodRelay.hpp" -enum eClickBehaviorMode { +enum eClickBehaviorMode +{ CLICKMODE_DEFAULT = 0, CLICKMODE_KILL }; -enum eMouseBindMode { +enum eMouseBindMode +{ MBIND_INVALID = -1, MBIND_MOVE = 0, MBIND_RESIZE }; -enum eBorderIconDirection { +enum eBorderIconDirection +{ BORDERICON_NONE, BORDERICON_UP, BORDERICON_DOWN, @@ -210,6 +213,14 @@ class CInputManager { void setBorderCursorIcon(eBorderIconDirection); void setCursorIconOnBorder(CWindow* w); + // cursor surface + struct cursorSI { + wlr_surface* pSurface = nullptr; + Vector2D vHotspot; + bool bUsed = false; + } cursorSurfaceInfo; + DYNLISTENER(CursorSurfaceDestroy); + friend class CKeybindManager; }; |
