mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 22:51:58 -07:00
subsurface: damage the entire parent on size change
the previous method doesn't exactly work, idk todo fix fixes #8784
This commit is contained in:
@@ -101,10 +101,19 @@ void CSubsurface::onCommit() {
|
|||||||
checkSiblingDamage();
|
checkSiblingDamage();
|
||||||
|
|
||||||
if (m_vLastSize != m_pWLSurface->resource()->current.size) {
|
if (m_vLastSize != m_pWLSurface->resource()->current.size) {
|
||||||
CBox box{COORDS, m_vLastSize};
|
// TODO: fix this
|
||||||
g_pHyprRenderer->damageBox(&box);
|
// CBox box{COORDS, m_vLastSize};
|
||||||
m_vLastSize = m_pWLSurface->resource()->current.size;
|
// g_pHyprRenderer->damageBox(&box);
|
||||||
box = {COORDS, m_vLastSize};
|
// m_vLastSize = m_pWLSurface->resource()->current.size;
|
||||||
|
// box = {COORDS, m_vLastSize};
|
||||||
|
// g_pHyprRenderer->damageBox(&box);
|
||||||
|
|
||||||
|
CBox box;
|
||||||
|
if (m_pPopupParent)
|
||||||
|
box = m_pPopupParent->m_pWLSurface->getSurfaceBoxGlobal().value_or(CBox{});
|
||||||
|
else if (m_pWindowParent)
|
||||||
|
box = m_pWindowParent->getWindowMainSurfaceBox();
|
||||||
|
|
||||||
g_pHyprRenderer->damageBox(&box);
|
g_pHyprRenderer->damageBox(&box);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user