diff --git a/src/desktop/UBDesktopAnnotationController.cpp b/src/desktop/UBDesktopAnnotationController.cpp index cc15b94a..4f7a0a76 100644 --- a/src/desktop/UBDesktopAnnotationController.cpp +++ b/src/desktop/UBDesktopAnnotationController.cpp @@ -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()); }