diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-11-25 11:34:29 +0000 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-11-25 11:34:52 +0000 |
| commit | 0e6e8461eb0139c2ecd4c66d7995cefe2a7f5195 (patch) | |
| tree | 36e4cb6a31600e2d7c4847c83f4f21bdbba98fcb /src/managers/input | |
| parent | 141456dd89b231aa05dfff9c184f103515cca3b4 (diff) | |
reset m_bEmptyFocusCursorSet on workspace switch
Diffstat (limited to 'src/managers/input')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 2 | ||||
| -rw-r--r-- | src/managers/input/InputManager.hpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 7586247e..eade4bda 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -218,7 +218,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "crosshair", g_pCompositor->m_sWLRCursor); else wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "left_ptr", g_pCompositor->m_sWLRCursor); - + m_bEmptyFocusCursorSet = true; } diff --git a/src/managers/input/InputManager.hpp b/src/managers/input/InputManager.hpp index f570efcb..5e3db515 100644 --- a/src/managers/input/InputManager.hpp +++ b/src/managers/input/InputManager.hpp @@ -25,6 +25,8 @@ struct STouchData { Vector2D touchSurfaceOrigin; }; +class CKeybindManager; + class CInputManager { public: @@ -161,6 +163,8 @@ private: // swipe void beginWorkspaceSwipe(); + + friend class CKeybindManager; }; inline std::unique_ptr<CInputManager> g_pInputManager; |
