diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-01-22 00:43:56 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-01-26 17:18:18 +0100 |
commit | 8359e44324a9554d1a340d91a0df962e83302228 (patch) | |
tree | 46fe061a94182a6f5978ce5da352df5f010ab4ba /src/platformsupport | |
parent | 5d1bb2ed575f88d147fb6140aa846a8665a102b8 (diff) |
Offscreen: Fix implementation of QScreen::grabWindow
If id == 0, then we should grab the specified rect from the screen.
To do that, find all windows intersecting with the screen geometry, and
compose their backing store images into a screen-size pixmap.
Otherwise, find the respective backing store and grab only that.
Remove the old code respecting the desktop widget, which is no longer a
thing in Qt 6. The code was also wrongly grabbing only the first
containing - not intersecting - window's backing store into the screen
pixmap.
Enable the QScreen::grabImage test for the offscreen platform, where it
now passes.
Task-number: QTBUG-99962
Change-Id: I16eca7b082d65095a62c73624f86a4423e997a7a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/platformsupport')
0 files changed, 0 insertions, 0 deletions