effects/screenshot: Avoid capturing hidden cursor

BUG: 460358
This commit is contained in:
Vlad Zahorodnii 2022-10-13 15:38:22 +03:00
parent 4f795dee20
commit f4b32c0580

View file

@ -378,6 +378,10 @@ QImage ScreenShotEffect::blitScreenshot(const QRect &geometry, qreal devicePixel
void ScreenShotEffect::grabPointerImage(QImage &snapshot, int xOffset, int yOffset) const
{
if (effects->isCursorHidden()) {
return;
}
const PlatformCursorImage cursor = effects->cursorImage();
if (cursor.image().isNull()) {
return;