config: disable hw on mgpu nvidia by default (#11018)

This commit is contained in:
Vaxry 2025-07-16 11:02:20 +02:00 committed by GitHub
parent 8453fbf4eb
commit 5bfe6dc703
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 2 deletions

View file

@ -1495,7 +1495,7 @@ inline static const std::vector<SConfigOptionDescription> 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"},
},

View file

@ -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;
}