mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 14:05:59 +01:00
renderer: don't use clipBox for pinned window occlusion during animations
ref #4094
This commit is contained in:
parent
0ebbf371ff
commit
af6aae4e12
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ void CHyprRenderer::renderWindow(CWindow* pWindow, CMonitor* pMonitor, timespec*
|
||||||
}
|
}
|
||||||
|
|
||||||
// if window is floating and we have a slide animation, clip it to its full bb
|
// if window is floating and we have a slide animation, clip it to its full bb
|
||||||
if (!ignorePosition && pWindow->m_bIsFloating && !pWindow->m_bIsFullscreen && PWORKSPACE->m_vRenderOffset.isBeingAnimated()) {
|
if (!ignorePosition && pWindow->m_bIsFloating && !pWindow->m_bIsFullscreen && PWORKSPACE->m_vRenderOffset.isBeingAnimated() && !pWindow->m_bPinned) {
|
||||||
CRegion rg = pWindow->getFullWindowBoundingBox().translate(-pMonitor->vecPosition + PWORKSPACE->m_vRenderOffset.vec()).scale(pMonitor->scale);
|
CRegion rg = pWindow->getFullWindowBoundingBox().translate(-pMonitor->vecPosition + PWORKSPACE->m_vRenderOffset.vec()).scale(pMonitor->scale);
|
||||||
g_pHyprOpenGL->m_RenderData.clipBox = rg.getExtents();
|
g_pHyprOpenGL->m_RenderData.clipBox = rg.getExtents();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue