aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-11-10 18:49:15 +0000
committerVaxry <[email protected]>2023-11-10 18:49:15 +0000
commit92cb44ddb2b464d1ef770ba1f4c79eafecae065b (patch)
tree33a1395faa7a78e336a9746c02f836dc71973e2a
parentb8a615ffb892aaa35a15dc732208bb7ad2a60209 (diff)
downloadHyprland-92cb44ddb2b464d1ef770ba1f4c79eafecae065b.tar.gz
Hyprland-92cb44ddb2b464d1ef770ba1f4c79eafecae065b.zip
input: don't schedule repaint on cursor move if hardware cursors are in use
-rw-r--r--src/managers/input/InputManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index d7733e96..78ed3d71 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -112,7 +112,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
if (*PZOOMFACTOR != 1.f)
g_pHyprRenderer->damageMonitor(PMONITOR);
- if (!PMONITOR->solitaryClient && g_pHyprRenderer->shouldRenderCursor())
+ if (!PMONITOR->solitaryClient && g_pHyprRenderer->shouldRenderCursor() && PMONITOR->output->software_cursor_locks > 0)
g_pCompositor->scheduleFrameForMonitor(PMONITOR);
CWindow* forcedFocus = m_pForcedFocus;