mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-26 09:41:57 -07:00
core: never use hw cursors when tearing
This commit is contained in:
@@ -3131,6 +3131,9 @@ const std::vector<SConfigOptionDescription>& CConfigManager::getAllDescriptions(
|
|||||||
bool CConfigManager::shouldUseSoftwareCursors(PHLMONITOR pMonitor) {
|
bool CConfigManager::shouldUseSoftwareCursors(PHLMONITOR pMonitor) {
|
||||||
static auto PNOHW = CConfigValue<Hyprlang::INT>("cursor:no_hardware_cursors");
|
static auto PNOHW = CConfigValue<Hyprlang::INT>("cursor:no_hardware_cursors");
|
||||||
|
|
||||||
|
if (pMonitor->m_tearingState.activelyTearing)
|
||||||
|
return true;
|
||||||
|
|
||||||
switch (*PNOHW) {
|
switch (*PNOHW) {
|
||||||
case 0: return false;
|
case 0: return false;
|
||||||
case 1: return true;
|
case 1: return true;
|
||||||
|
Reference in New Issue
Block a user