Minor formatting fix

This commit is contained in:
Lucas 2024-06-16 13:35:22 -04:00
parent 63e365eae7
commit 3eba09b15e
No known key found for this signature in database
GPG Key ID: 40B7D56C550FF4BE

View File

@ -388,11 +388,15 @@ void CPointerManager::updateCursorBackend() {
for (auto& m : g_pCompositor->m_vMonitors) {
updateCursorBackendForMonitor(m, *PNOHW);
for (auto& mirror : m->mirrors)
for (auto& M : g_pCompositor->m_vRealMonitors)
for (auto& mirror : m->mirrors) {
for (auto& M : g_pCompositor->m_vRealMonitors) {
// update backend for mirrors when using hardware cursor
if (M->ID == mirror->ID && !*PNOHW)
updateCursorBackendForMonitor(M, *PNOHW);
if (M->ID == mirror->ID && !*PNOHW) {
updateCursorBackendForMonitor(M, true);
break;
}
}
}
}
}