|
|
@ -334,7 +334,8 @@ void UBDesktopAnnotationController::showWindow() |
|
|
|
#ifndef Q_OS_LINUX |
|
|
|
#ifndef Q_OS_LINUX |
|
|
|
UBPlatformUtils::showFullScreen(mTransparentDrawingView); |
|
|
|
UBPlatformUtils::showFullScreen(mTransparentDrawingView); |
|
|
|
#else |
|
|
|
#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(); |
|
|
|
mTransparentDrawingView->show(); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
UBPlatformUtils::setDesktopMode(true); |
|
|
|
UBPlatformUtils::setDesktopMode(true); |
|
|
@ -431,7 +432,7 @@ void UBDesktopAnnotationController::customCapture() |
|
|
|
// need to show the window before execute it to avoid some glitch on windows.
|
|
|
|
// 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
|
|
|
|
#ifndef Q_OS_WIN // Working only without this call on win32 desktop mode
|
|
|
|
customCaptureWindow.show(); |
|
|
|
UBPlatformUtils::showFullScreen(&customCaptureWindow); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
if (customCaptureWindow.execute(getScreenPixmap()) == QDialog::Accepted) |
|
|
|
if (customCaptureWindow.execute(getScreenPixmap()) == QDialog::Accepted) |
|
|
|