diff --git a/src/managers/SessionLockManager.cpp b/src/managers/SessionLockManager.cpp index 3bec1c4b..b4695e0e 100644 --- a/src/managers/SessionLockManager.cpp +++ b/src/managers/SessionLockManager.cpp @@ -10,7 +10,7 @@ SSessionLockSurface::SSessionLockSurface(SP surface_) : sur listeners.map = surface_->events.map.registerListener([this](std::any data) { mapped = true; - g_pCompositor->focusSurface(surface->surface()); + g_pInputManager->simulateMouseMovement(); const auto PMONITOR = g_pCompositor->getMonitorFromID(iMonitorID); @@ -78,6 +78,7 @@ void CSessionLockManager::onNewSessionLock(SP pLock) { }); pLock->sendLocked(); + g_pCompositor->focusSurface(nullptr); } bool CSessionLockManager::isSessionLocked() {