session-lock: don't render workspaces when locked (#10865)

Avoid rendering the workspace behind if we are locked
This commit is contained in:
Maximilian Seidler 2025-07-14 13:13:54 +02:00 committed by GitHub
parent d0f58baf29
commit 01971cb6c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 129 additions and 81 deletions

View file

@ -33,7 +33,7 @@ static int wlTick(SP<CEventLoopTimer> self, void* data) {
}
CHyprAnimationManager::CHyprAnimationManager() {
m_animationTimer = SP<CEventLoopTimer>(new CEventLoopTimer(std::chrono::microseconds(500), wlTick, nullptr));
m_animationTimer = makeShared<CEventLoopTimer>(std::chrono::microseconds(500), wlTick, nullptr);
if (g_pEventLoopManager) // null in --verify-config mode
g_pEventLoopManager->addTimer(m_animationTimer);