--- a/eric6/Snapshot/SnapshotRegionGrabber.py Sat Jan 02 17:28:57 2021 +0100 +++ b/eric6/Snapshot/SnapshotRegionGrabber.py Sun Jan 03 15:33:39 2021 +0100 @@ -112,14 +112,9 @@ """ Private slot to initialize the rest of the widget. """ - self.__desktop = QApplication.desktop() - x = self.__desktop.x() - y = self.__desktop.y() - self.__pixmap = QApplication.screens()[0].grabWindow( - self.__desktop.winId(), x, y, - self.__desktop.width(), self.__desktop.height()) + self.__pixmap = QApplication.screens()[0].grabWindow(0) self.resize(self.__pixmap.size()) - self.move(x, y) + self.move(0, 0) self.setCursor(Qt.CrossCursor) self.show() @@ -168,8 +163,7 @@ painter.setBrush(textBackgroundColor) self.__helpTextRect = painter.boundingRect( self.rect().adjusted(2, 2, -2, -2), - Qt.TextWordWrap, self.__helpText).translated( - -self.__desktop.x(), -self.__desktop.y()) + Qt.TextWordWrap, self.__helpText).translated(0, 0) self.__helpTextRect.adjust(-2, -2, 4, 2) drawRect(painter, self.__helpTextRect, textColor, textBackgroundColor)