layerSurface: warp position and size before taking a snapshot (#10054)

This commit is contained in:
Vaxry 2025-04-13 17:56:20 +02:00 committed by GitHub
parent 06469b3391
commit f4e19d3f1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());