finish / sync screenshot before calling ksnapshot
BUG: 312209 FIXED-IN: 4.10 REVIEW: 107981
This commit is contained in:
parent
683aa55957
commit
75e87a44ce
1 changed files with 2 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue