hyprwinwrap: mark blur dirty on commit

fixes #91
This commit is contained in:
Vaxry 2024-03-09 18:21:47 +00:00
parent 8d3a0701a2
commit ba7d13e955

View file

@ -97,6 +97,8 @@ void onCommitSubsurface(CSubsurface* thisptr) {
PWINDOW->m_bHidden = false; PWINDOW->m_bHidden = false;
((origCommitSubsurface)subsurfaceHook->m_pOriginal)(thisptr); ((origCommitSubsurface)subsurfaceHook->m_pOriginal)(thisptr);
if (const auto MON = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID); MON)
g_pHyprOpenGL->markBlurDirtyForMonitor(MON);
PWINDOW->m_bHidden = true; PWINDOW->m_bHidden = true;
} }
@ -113,6 +115,8 @@ void onCommit(void* owner, void* data) {
PWINDOW->m_bHidden = false; PWINDOW->m_bHidden = false;
((origCommit)commitHook->m_pOriginal)(owner, data); ((origCommit)commitHook->m_pOriginal)(owner, data);
if (const auto MON = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID); MON)
g_pHyprOpenGL->markBlurDirtyForMonitor(MON);
PWINDOW->m_bHidden = true; PWINDOW->m_bHidden = true;
} }