summaryrefslogtreecommitdiff
path: root/src/desktop/Subsurface.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-03-14 20:21:58 +0000
committerVaxry <vaxry@vaxry.net>2024-03-14 20:21:58 +0000
commitb7b13623bac54d4f6dd9e546f18fa816ecf555b7 (patch)
treea290959f640d905022e099db36885ffc8bc802c8 /src/desktop/Subsurface.cpp
parent164e92f8e376536fff89dac41cde654293e64522 (diff)
subsurface/popup: expand on map/unmap to add buffering
ref #5113
Diffstat (limited to 'src/desktop/Subsurface.cpp')
-rw-r--r--src/desktop/Subsurface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/desktop/Subsurface.cpp b/src/desktop/Subsurface.cpp
index 0d76a147..1a3dd9f5 100644
--- a/src/desktop/Subsurface.cpp
+++ b/src/desktop/Subsurface.cpp
@@ -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)