mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-30 11:23:49 -07:00
popups: more safety in damage checking
This commit is contained in:
@@ -155,6 +155,9 @@ void CPopup::onCommit(bool ignoreSiblings) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!m_pWLR->base->surface->mapped)
|
||||||
|
return;
|
||||||
|
|
||||||
const auto COORDS = coordsGlobal();
|
const auto COORDS = coordsGlobal();
|
||||||
const auto COORDSLOCAL = coordsRelativeToParent();
|
const auto COORDSLOCAL = coordsRelativeToParent();
|
||||||
|
|
||||||
@@ -168,7 +171,7 @@ void CPopup::onCommit(bool ignoreSiblings) {
|
|||||||
m_vLastPos = COORDSLOCAL;
|
m_vLastPos = COORDSLOCAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ignoreSiblings)
|
if (!ignoreSiblings && m_pSubsurfaceHead)
|
||||||
m_pSubsurfaceHead->recheckDamageForSubsurfaces();
|
m_pSubsurfaceHead->recheckDamageForSubsurfaces();
|
||||||
|
|
||||||
g_pHyprRenderer->damageSurface(m_sWLSurface.wlr(), COORDS.x, COORDS.y);
|
g_pHyprRenderer->damageSurface(m_sWLSurface.wlr(), COORDS.x, COORDS.y);
|
||||||
|
Reference in New Issue
Block a user