Client: Fix copying shm buffer data with fractional scaling


The QWaylandShmBackingStore computes the device pixels in the source
image manually. But it does not match what the QPainter does one to one.
Visually, it produces artifacts where the contents of an app is
jiggling or moves back and forth by one pixel.

In order to address the issue, the QWaylandShmBackingStore can copy
whole buffers but with a clip region set. That way, the QPainter can
consistently compute the coordinates in the device pixels.

Pick-to: 6.9
Change-Id: Ib4832c4d687f43f6cc1de4a1760c32f1abd2ab03
Reviewed-by: David Edmundson <davidedmundson@kde.org>
commit6b3382ded7b80f83a9e94322a6cb3b91b7b7b1ba
parentb8f62228b204d1009bbe3187032f3dd2c91216d1
authorVlad Zahorodnii <vlad.zahorodnii@kde.org>
committerVlad Zahorodnii <vlad.zahorodnii@kde.org>
commit timeMon, 7 Apr 2025 15:49:58 +0300