From 5bfe6dc703f678e6f8197ea587d798681fa21816 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Wed, 16 Jul 2025 11:02:20 +0200 Subject: config: disable hw on mgpu nvidia by default (#11018) --- src/config/ConfigDescriptions.hpp | 2 +- src/config/ConfigManager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config') diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp index 927d67de..ae1f51e4 100644 --- a/src/config/ConfigDescriptions.hpp +++ b/src/config/ConfigDescriptions.hpp @@ -1495,7 +1495,7 @@ inline static const std::vector CONFIG_OPTIONS = { SConfigOptionDescription{ .value = "cursor:no_hardware_cursors", - .description = "disables hardware cursors. Auto = disable when tearing", + .description = "disables hardware cursors. Auto = disable when multi-gpu on nvidia", .type = CONFIG_OPTION_CHOICE, .data = SConfigOptionDescription::SChoiceData{0, "Disabled,Enabled,Auto"}, }, diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index bc198fac..ceaa0979 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -3134,7 +3134,7 @@ bool CConfigManager::shouldUseSoftwareCursors(PHLMONITOR pMonitor) { switch (*PNOHW) { case 0: return false; case 1: return true; - case 2: return pMonitor->m_tearingState.activelyTearing; + case 2: return g_pHyprRenderer->isNvidia() && g_pHyprRenderer->isMgpu(); default: break; } -- cgit v1.2.3