summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-08-13 17:46:16 +0200
committervaxerski <vaxry@vaxry.net>2023-08-13 17:46:20 +0200
commit0220e4c1eac1f797e3c3406e0e92d4311ce8090c (patch)
tree827ec379fd4fd10f5ee8baef171eec169682ffd3 /src/managers/input/InputManager.cpp
parent4b568ae5f67594819f7858d9f2def1007368ddda (diff)
input: notify idle about activity on mouse move regardless of focus
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index f4382838..bee83388 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -85,6 +85,9 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
if (MOUSECOORDSFLOORED == m_vLastCursorPosFloored && !refocus)
return;
+ if (time)
+ g_pCompositor->notifyIdleActivity();
+
EMIT_HOOK_EVENT("mouseMove", MOUSECOORDSFLOORED);
m_vLastCursorPosFloored = MOUSECOORDSFLOORED;
@@ -319,9 +322,6 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
m_bEmptyFocusCursorSet = false;
- if (time)
- g_pCompositor->notifyIdleActivity();
-
Vector2D surfaceLocal = surfacePos == Vector2D(-1337, -1337) ? surfaceCoords : mouseCoords - surfacePos;
if (pFoundWindow && !pFoundWindow->m_bIsX11 && surfacePos != Vector2D(-1337, -1337)) {