Commit a76704ad authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

effects/screenshot: Avoid capturing hidden cursor

BUG: 460358

(cherry picked from commit f4b32c05)
parent 87c87cbd
Pipeline #247171 failed with stage
in 16 minutes and 44 seconds
......@@ -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()) {
const PlatformCursorImage cursor = effects->cursorImage();
if (cursor.image().isNull()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment