diff options
| author | Andre Toerien <andre.toerien8@gmail.com> | 2024-11-27 21:59:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-27 19:59:00 +0000 |
| commit | 5329298b522e3cc1201894909443775b00aeb336 (patch) | |
| tree | 13644a2d0c0f917d4fb2e00302d153b2d46cf1e9 /src/managers/SessionLockManager.cpp | |
| parent | e9a7fb8f91d23f1ac2671e55f74234dcec2ee1c6 (diff) | |
sessionLock: don't send motion events on every surface commit (#8584)
Diffstat (limited to 'src/managers/SessionLockManager.cpp')
| -rw-r--r-- | src/managers/SessionLockManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/SessionLockManager.cpp b/src/managers/SessionLockManager.cpp index c7a5934a..b7110990 100644 --- a/src/managers/SessionLockManager.cpp +++ b/src/managers/SessionLockManager.cpp @@ -31,7 +31,7 @@ SSessionLockSurface::SSessionLockSurface(SP<CSessionLockSurface> surface_) : sur listeners.commit = surface_->events.commit.registerListener([this](std::any data) { const auto PMONITOR = g_pCompositor->getMonitorFromID(iMonitorID); - if (mapped && pWlrSurface != g_pCompositor->m_pLastFocus) + if (mapped && !g_pCompositor->m_pLastFocus) g_pInputManager->simulateMouseMovement(); if (PMONITOR) |
