session-lock: reset seat grab on a new session lock (#8147)

This commit is contained in:
Maximilian Seidler 2024-10-17 20:05:55 +00:00 committed by GitHub
parent 5f30cb7753
commit 0e630e9e74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,6 +3,7 @@
#include "../config/ConfigValue.hpp" #include "../config/ConfigValue.hpp"
#include "../protocols/FractionalScale.hpp" #include "../protocols/FractionalScale.hpp"
#include "../protocols/SessionLock.hpp" #include "../protocols/SessionLock.hpp"
#include "../managers/SeatManager.hpp"
#include <algorithm> #include <algorithm>
#include <ranges> #include <ranges>
@ -84,6 +85,7 @@ void CSessionLockManager::onNewSessionLock(SP<CSessionLock> pLock) {
}); });
g_pCompositor->focusSurface(nullptr); g_pCompositor->focusSurface(nullptr);
g_pSeatManager->setGrab(nullptr);
} }
bool CSessionLockManager::isSessionLocked() { bool CSessionLockManager::isSessionLocked() {