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:
parent
7991e65e61
commit
64f7e6c63d
|
@ -178,8 +178,12 @@ void ScreenshotGrabber::adjustWindowSize()
|
||||||
this->overlay->setRect(systemScreenRect);
|
this->overlay->setRect(systemScreenRect);
|
||||||
}
|
}
|
||||||
|
|
||||||
QPixmap ScreenshotGrabber::grabScreen() {
|
QPixmap ScreenshotGrabber::grabScreen()
|
||||||
return QApplication::primaryScreen()->grabWindow(QApplication::desktop()->winId());
|
{
|
||||||
|
QRect systemScreenRect = getSystemScreenRect();
|
||||||
|
return QApplication::primaryScreen()->grabWindow(QApplication::desktop()->winId(),0,0,
|
||||||
|
systemScreenRect.width(),
|
||||||
|
systemScreenRect.height());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenshotGrabber::beginRectChooser(QGraphicsSceneMouseEvent* event)
|
void ScreenshotGrabber::beginRectChooser(QGraphicsSceneMouseEvent* event)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user