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

@@ -177,6 +177,7 @@ void CSubsurface::onMap() {
const auto COORDS = coordsGlobal();
CBox box{COORDS, m_vLastSize};
box.expand(4);
g_pHyprRenderer->damageBox(&box);
if (m_pWindowParent)
@@ -186,6 +187,7 @@ void CSubsurface::onMap() {
void CSubsurface::onUnmap() {
const auto COORDS = coordsGlobal();
CBox box{COORDS, m_vLastSize};
box.expand(4);
g_pHyprRenderer->damageBox(&box);
if (m_sWLSurface.wlr() == g_pCompositor->m_pLastFocus)