renderer: properly software lock cursors with zoom_factor (#6434)
This commit is contained in:
parent
a99f314106
commit
38132ffaf5
3 changed files with 25 additions and 7 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue