client: Flush painting on subsurfaces


When native widgets are nested in Qt, they act like independent windows
with a shared backing store. The toplevel window gets multiple flush
events with an argument for the window sub-content.

In wayland we need a unique backing store, so this code copies the
relevant contents into a new buffer and attaches it to the
subsurface.

Task-number: QTBUG-128029
Pick-to: 6.8
Change-Id: I865cb271d694d8190a444eb5a98378cd6a30634d
Reviewed-by: David Redondo <qt@david-redondo.de>
commitef9fcedd4dd46fd2216def08f363a9435b02d65d
parent8ad868df80f5463b7ab0eada8be2d702034b132d
authorDavid Edmundson <davidedmundson@kde.org>
committerDavid Edmundson <davidedmundson@kde.org>
commit timeTue, 15 Oct 2024 13:27:38 +0000