diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-05-09 23:08:40 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-05-09 23:08:40 +0100 |
| commit | 1753059b07be52cf78fa2676c4c71d2edb560199 (patch) | |
| tree | e0eef896c41391090cabaaeb0e8b4360821bd1c4 /src/managers/PointerManager.cpp | |
| parent | b0861b6709c1735dc5b4275e5d87b7c83f1ef1f0 (diff) | |
pointermgr: reset entered outputs when resetting surface
fixes #5970
Diffstat (limited to 'src/managers/PointerManager.cpp')
| -rw-r--r-- | src/managers/PointerManager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/managers/PointerManager.cpp b/src/managers/PointerManager.cpp index 21c6998f..663456f8 100644 --- a/src/managers/PointerManager.cpp +++ b/src/managers/PointerManager.cpp @@ -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; |
