Skip to content

Commit

Permalink
hyprwinwrap: mark blur dirty on commit
Browse files Browse the repository at this point in the history
fixes #91
  • Loading branch information
vaxerski committed Mar 9, 2024
1 parent 8d3a070 commit ba7d13e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hyprwinwrap/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ void onCommitSubsurface(CSubsurface* thisptr) {
PWINDOW->m_bHidden = false;

((origCommitSubsurface)subsurfaceHook->m_pOriginal)(thisptr);
if (const auto MON = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID); MON)
g_pHyprOpenGL->markBlurDirtyForMonitor(MON);

PWINDOW->m_bHidden = true;
}
Expand All @@ -113,6 +115,8 @@ void onCommit(void* owner, void* data) {
PWINDOW->m_bHidden = false;

((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;
}
Expand Down

0 comments on commit ba7d13e

Please sign in to comment.