From f4e19d3f1e27b4cf1236e93d767f9f6e916730ea Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 13 Apr 2025 17:56:20 +0200 Subject: [PATCH] layerSurface: warp position and size before taking a snapshot (#10054) --- src/desktop/LayerSurface.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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());