scene: Fix syncing buffer source box with 100% scale

The buffer source box is synchronized when the surface-to-buffer matrix
changes. However, when using 100% scaling, it's likely that the
surface-to-buffer matrix will be identity and therefore no corresponding
signal to indicate the change will be emitted.

To fix that, we need to update the buffer source box also when the
buffer size changes.
This commit is contained in:
Vlad Zahorodnii 2023-07-25 14:28:01 +03:00
parent 9a2355339c
commit 29229c5aff

View file

@ -91,6 +91,7 @@ void SurfaceItemWayland::handleSurfaceSizeChanged()
void SurfaceItemWayland::handleBufferSizeChanged()
{
setBufferSourceBox(m_surface->bufferSourceBox());
setBufferSize(m_surface->bufferSize());
discardPixmap();
}