1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Correct screenshot 2nd monitor

but only if a second monitor on the right side
This commit is contained in:
PKEv 2015-05-28 00:23:26 +03:00
parent 7991e65e61
commit 64f7e6c63d

View File

@ -178,8 +178,12 @@ void ScreenshotGrabber::adjustWindowSize()
this->overlay->setRect(systemScreenRect);
}
QPixmap ScreenshotGrabber::grabScreen() {
return QApplication::primaryScreen()->grabWindow(QApplication::desktop()->winId());
QPixmap ScreenshotGrabber::grabScreen()
{
QRect systemScreenRect = getSystemScreenRect();
return QApplication::primaryScreen()->grabWindow(QApplication::desktop()->winId(),0,0,
systemScreenRect.width(),
systemScreenRect.height());
}
void ScreenshotGrabber::beginRectChooser(QGraphicsSceneMouseEvent* event)