mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 12:41:55 -07:00
renderer: use session lock alpha for rendering lacking locks
This commit is contained in:
@@ -824,8 +824,9 @@ void CHyprRenderer::renderAllClientsForWorkspace(CMonitor* pMonitor, PHLWORKSPAC
|
|||||||
|
|
||||||
if (g_pSessionLockManager->isSessionLocked() && !g_pSessionLockManager->isSessionLockPresent()) {
|
if (g_pSessionLockManager->isSessionLocked() && !g_pSessionLockManager->isSessionLockPresent()) {
|
||||||
// locked with no exclusive, draw only red
|
// locked with no exclusive, draw only red
|
||||||
CBox boxe = {0, 0, INT16_MAX, INT16_MAX};
|
CBox boxe = {0, 0, INT16_MAX, INT16_MAX};
|
||||||
g_pHyprOpenGL->renderRect(&boxe, CColor(1.0, 0.2, 0.2, 1.0));
|
const float A = g_pSessionLockManager->getRedScreenAlphaForMonitor(pMonitor->ID);
|
||||||
|
g_pHyprOpenGL->renderRect(&boxe, CColor(1.0, 0.2, 0.2, A));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user