mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-12-20 08:50:03 +01:00
renderer: fix nvidia workaround (#878)
This commit is contained in:
parent
a7f2634a9e
commit
61b36c64a8
3 changed files with 6 additions and 0 deletions
|
|
@ -316,6 +316,7 @@ void CHyprlock::run() {
|
|||
g_pRenderer.reset();
|
||||
g_pEGL = makeUnique<CEGL>(m_sWaylandState.display);
|
||||
g_pRenderer = makeUnique<CRenderer>();
|
||||
g_pRenderer->warpOpacity(1.0);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -617,3 +617,7 @@ void CRenderer::startFadeOut(bool unlock) {
|
|||
if (unlock)
|
||||
opacity->setCallbackOnEnd([](auto) { g_pHyprlock->releaseSessionLock(); }, true);
|
||||
}
|
||||
|
||||
void CRenderer::warpOpacity(float newOpacity) {
|
||||
opacity->setValueAndWarp(newOpacity);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ class CRenderer {
|
|||
|
||||
void startFadeIn();
|
||||
void startFadeOut(bool unlock = false);
|
||||
void warpOpacity(float warpOpacity);
|
||||
std::vector<ASP<IWidget>>& getOrCreateWidgetsFor(const CSessionLockSurface& surf);
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue