Commit 7e2b4638 authored by Craig Watson's avatar Craig Watson

Fixed screenshot taking pixmap of entire desktop in multiscreen environment

parent 82c34946
......@@ -500,11 +500,12 @@ void UBDesktopAnnotationController::screenCapture()
QPixmap UBDesktopAnnotationController::getScreenPixmap()
{
QDesktopWidget *desktop = QApplication::desktop();
QScreen * screen = QApplication::primaryScreen();
return screen->grabWindow(desktop->effectiveWinId());
QRect rect = desktop->screenGeometry(QCursor::pos());
return screen->grabWindow(desktop->effectiveWinId(),
rect.x(), rect.y(), rect.width(), rect.height());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment