renderer: properly software lock cursors with zoom_factor (#6434)

This commit is contained in:
Ikalco
2024-06-12 12:28:52 -05:00
committed by GitHub
parent a99f314106
commit 38132ffaf5
3 changed files with 25 additions and 7 deletions

View File

@@ -150,6 +150,20 @@ CPointerManager::CPointerManager() {
});
}
void CPointerManager::lockSoftwareAll() {
for (auto& state : monitorStates)
state->softwareLocks++;
updateCursorBackend();
}
void CPointerManager::unlockSoftwareAll() {
for (auto& state : monitorStates)
state->softwareLocks--;
updateCursorBackend();
}
void CPointerManager::lockSoftwareForMonitor(SP<CMonitor> mon) {
auto state = stateFor(mon);
state->softwareLocks++;