sessionLock: don't send motion events on every surface commit (#8584)

This commit is contained in:
Andre Toerien 2024-11-27 21:59:00 +02:00 committed by GitHub
parent e9a7fb8f91
commit 5329298b52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,7 +31,7 @@ SSessionLockSurface::SSessionLockSurface(SP<CSessionLockSurface> surface_) : sur
listeners.commit = surface_->events.commit.registerListener([this](std::any data) { listeners.commit = surface_->events.commit.registerListener([this](std::any data) {
const auto PMONITOR = g_pCompositor->getMonitorFromID(iMonitorID); const auto PMONITOR = g_pCompositor->getMonitorFromID(iMonitorID);
if (mapped && pWlrSurface != g_pCompositor->m_pLastFocus) if (mapped && !g_pCompositor->m_pLastFocus)
g_pInputManager->simulateMouseMovement(); g_pInputManager->simulateMouseMovement();
if (PMONITOR) if (PMONITOR)