effects/screenshot: Avoid capturing hidden cursor
BUG: 460358
This commit is contained in:
parent
4f795dee20
commit
f4b32c0580
1 changed files with 4 additions and 0 deletions
|
@ -378,6 +378,10 @@ QImage ScreenShotEffect::blitScreenshot(const QRect &geometry, qreal devicePixel
|
||||||
|
|
||||||
void ScreenShotEffect::grabPointerImage(QImage &snapshot, int xOffset, int yOffset) const
|
void ScreenShotEffect::grabPointerImage(QImage &snapshot, int xOffset, int yOffset) const
|
||||||
{
|
{
|
||||||
|
if (effects->isCursorHidden()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const PlatformCursorImage cursor = effects->cursorImage();
|
const PlatformCursorImage cursor = effects->cursorImage();
|
||||||
if (cursor.image().isNull()) {
|
if (cursor.image().isNull()) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue