|
|
|
@ -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) |
|
|
|
|