summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-02-15 01:26:48 +0000
committerVaxry <vaxry@vaxry.net>2024-02-15 01:26:48 +0000
commit770956b0921139ea13b478dda0e301842546d74c (patch)
tree7032b0f419a33cc29322cc59841b9ce86e8445d6 /src/managers/input/InputManager.cpp
parent3cca36e7738559bbc72ac8fc99eaca3e3d94c0cb (diff)
input: don't schedule frame on cursor move on hw cursors
spams unnecessary frames. Maybe we should ignore empty damage frame requests too? ref #3747 #3490
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index baf648df..d6ddba46 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -315,7 +315,8 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
foundSurface =
g_pCompositor->vectorToLayerSurface(mouseCoords, &PMONITOR->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND], &surfaceCoords, &pFoundLayerSurface);
- g_pCompositor->scheduleFrameForMonitor(g_pCompositor->m_pLastMonitor);
+ if (g_pCompositor->m_pLastMonitor->output->software_cursor_locks > 0)
+ g_pCompositor->scheduleFrameForMonitor(g_pCompositor->m_pLastMonitor);
if (!foundSurface) {
if (!m_bEmptyFocusCursorSet) {