summaryrefslogtreecommitdiff
path: root/src/desktop/LayerSurface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
-rw-r--r--src/desktop/LayerSurface.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp
index 8747d079..c92169bc 100644
--- a/src/desktop/LayerSurface.cpp
+++ b/src/desktop/LayerSurface.cpp
@@ -214,6 +214,10 @@ void CLayerSurface::onUnmap() {
return;
}
+ // end any pending animations so that snapshot has right dimensions
+ realPosition->warp();
+ realSize->warp();
+
// make a snapshot and start fade
g_pHyprRenderer->makeLayerSnapshot(self.lock());