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