pointermgr: reset entered outputs when resetting surface

fixes #5970
This commit is contained in:
Vaxry 2024-05-09 23:08:40 +01:00
parent b0861b6709
commit 1753059b07

View File

@ -297,6 +297,13 @@ void CPointerManager::resetCursorImage(bool apply) {
currentCursorImage.scale = 1.F;
currentCursorImage.hotspot = {0, 0};
for (auto& s : monitorStates) {
if (s->monitor.expired() || s->monitor->isMirror() || !s->monitor->m_bEnabled)
continue;
s->entered = false;
}
if (!apply)
return;