summaryrefslogtreecommitdiff
path: root/src/desktop/LayerSurface.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-04-13 17:56:20 +0200
committerGitHub <noreply@github.com>2025-04-13 17:56:20 +0200
commitf4e19d3f1e27b4cf1236e93d767f9f6e916730ea (patch)
tree4b0016bf70c5d6784cf5a088c75dde364e08d94c /src/desktop/LayerSurface.cpp
parent06469b33919bf1806024e73a1540be50d7819ace (diff)
layerSurface: warp position and size before taking a snapshot (#10054)
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());