From 70b2fd960b0676552706df4ac341f1cb767cfd4a Mon Sep 17 00:00:00 2001 From: Craig Watson Date: Wed, 11 May 2016 16:23:25 +0200 Subject: [PATCH] Fix for desktop mode partial screen capture taking an offset image of the desktop --- src/desktop/UBDesktopAnnotationController.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/desktop/UBDesktopAnnotationController.cpp b/src/desktop/UBDesktopAnnotationController.cpp index f34fb7b5..a5b8e0aa 100644 --- a/src/desktop/UBDesktopAnnotationController.cpp +++ b/src/desktop/UBDesktopAnnotationController.cpp @@ -334,7 +334,8 @@ void UBDesktopAnnotationController::showWindow() #ifndef Q_OS_LINUX UBPlatformUtils::showFullScreen(mTransparentDrawingView); #else - // this is necessary to avoid unity to hide the panels + // this is necessary to avoid hiding the panels on Unity and Cinnamon + // if finer control is necessary, use qgetenv("XDG_CURRENT_DESKTOP") mTransparentDrawingView->show(); #endif UBPlatformUtils::setDesktopMode(true); @@ -431,7 +432,7 @@ void UBDesktopAnnotationController::customCapture() // need to show the window before execute it to avoid some glitch on windows. #ifndef Q_OS_WIN // Working only without this call on win32 desktop mode - customCaptureWindow.show(); + UBPlatformUtils::showFullScreen(&customCaptureWindow); #endif if (customCaptureWindow.execute(getScreenPixmap()) == QDialog::Accepted)