diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-04-13 17:56:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-13 17:56:20 +0200 |
| commit | f4e19d3f1e27b4cf1236e93d767f9f6e916730ea (patch) | |
| tree | 4b0016bf70c5d6784cf5a088c75dde364e08d94c /src/desktop/LayerSurface.cpp | |
| parent | 06469b33919bf1806024e73a1540be50d7819ace (diff) | |
layerSurface: warp position and size before taking a snapshot (#10054)
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
| -rw-r--r-- | src/desktop/LayerSurface.cpp | 4 |
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()); |
