path: root/src/corelib/io/qfilesystemwatcher_win.cpp
diff options
authorVolker Hilsheimer <>2022-01-22 00:43:56 +0100
committerVolker Hilsheimer <>2022-01-26 17:18:18 +0100
commit8359e44324a9554d1a340d91a0df962e83302228 (patch)
tree46fe061a94182a6f5978ce5da352df5f010ab4ba /src/corelib/io/qfilesystemwatcher_win.cpp
parent5d1bb2ed575f88d147fb6140aa846a8665a102b8 (diff)
Offscreen: Fix implementation of QScreen::grabWindowHEADdev
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 <> Reviewed-by: Laszlo Agocs <>
Diffstat (limited to 'src/corelib/io/qfilesystemwatcher_win.cpp')
0 files changed, 0 insertions, 0 deletions