Commit 70b2fd96 authored by Craig Watson's avatar Craig Watson

Fix for desktop mode partial screen capture taking an offset image of the desktop

parent d52e45f4
......@@ -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)
......
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