core: never use hw cursors when tearing

This commit is contained in:
Vaxry
2025-07-16 11:08:29 +02:00
parent 5bfe6dc703
commit d4fbedcd35

View File

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