finish / sync screenshot before calling ksnapshot

BUG: 312209
FIXED-IN: 4.10
REVIEW: 107981
This commit is contained in:
Thomas Lübking 2012-12-27 22:01:41 +01:00
parent 683aa55957
commit 75e87a44ce

View file

@ -148,6 +148,8 @@ void ScreenShotEffect::postPaintScreen()
QPainter p(&m_lastScreenshot);
p.setCompositionMode(QPainter::CompositionMode_Source);
p.drawImage(QPoint(0, 0), img);
p.end();
XSync(display(), False);
}
emit screenshotCreated(m_lastScreenshot.handle());
}