summaryrefslogtreecommitdiff
path: root/src/managers
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-01-26 10:39:06 +0000
committervaxerski <vaxry@vaxry.net>2023-01-26 10:39:06 +0000
commit06b17db22776e613a714e7e936618c16c3f47eaa (patch)
treeeb1dd3e80c1e03fccf102ebcd5f9202152b6a029 /src/managers
parentfc89e70a1fb74429ad0f772d399325f69e65b357 (diff)
don't set cursor when timeout reached
Diffstat (limited to 'src/managers')
-rw-r--r--src/managers/input/InputManager.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 685cf26a..2b685b9a 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -225,11 +225,13 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
if (!foundSurface) {
if (!m_bEmptyFocusCursorSet) {
- // TODO: maybe wrap?
- if (m_ecbClickBehavior == CLICKMODE_KILL)
- 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);
+ if (g_pHyprRenderer->m_bHasARenderedCursor) {
+ // TODO: maybe wrap?
+ if (m_ecbClickBehavior == CLICKMODE_KILL)
+ 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;
}