summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-07-16 11:08:29 +0200
committerVaxry <vaxry@vaxry.net>2025-07-16 11:33:40 +0200
commitd4fbedcd355c06269f4a6207c119a546a5553526 (patch)
tree3cd40d3625beaf11dcb6783c9402040e7e19bd82 /src/config/ConfigManager.cpp
parent5bfe6dc703f678e6f8197ea587d798681fa21816 (diff)
core: never use hw cursors when tearing
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index ceaa0979..1c98b5b5 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -3131,6 +3131,9 @@ const std::vector<SConfigOptionDescription>& CConfigManager::getAllDescriptions(
bool CConfigManager::shouldUseSoftwareCursors(PHLMONITOR pMonitor) {
static auto PNOHW = CConfigValue<Hyprlang::INT>("cursor:no_hardware_cursors");
+ if (pMonitor->m_tearingState.activelyTearing)
+ return true;
+
switch (*PNOHW) {
case 0: return false;
case 1: return true;