mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-24 22:10:03 +01:00
core: never use hw cursors when tearing
This commit is contained in:
parent
5bfe6dc703
commit
d4fbedcd35
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue