subsurface/popup: expand on map/unmap to add buffering

ref #5113
This commit is contained in:
Vaxry
2024-03-14 20:21:58 +00:00
parent 164e92f8e3
commit b7b13623ba
2 changed files with 4 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ void CPopup::onMap() {
CBox box;
wlr_surface_get_extends(m_sWLSurface.wlr(), box.pWlr());
box.applyFromWlr().translate(COORDS);
box.applyFromWlr().translate(COORDS).expand(4);
g_pHyprRenderer->damageBox(&box);
m_vLastPos = coordsRelativeToParent();
@@ -125,7 +125,7 @@ void CPopup::onUnmap() {
CBox box;
wlr_surface_get_extends(m_sWLSurface.wlr(), box.pWlr());
box.applyFromWlr().translate(COORDS);
box.applyFromWlr().translate(COORDS).expand(4);
g_pHyprRenderer->damageBox(&box);
m_pSubsurfaceHead.reset();