Fix dock and menu hiding on macOS.

Regression was introduced in 0681d10c51.
This commit is contained in:
John Preston 2019-02-01 15:32:05 +03:00
parent 2d4c99a6f7
commit 74fc5524ab
1 changed files with 8 additions and 4 deletions

View File

@ -137,11 +137,11 @@ MediaView::MediaView()
});
handleAuthSessionChange();
#ifdef OS_MAC_OLD
setWindowFlags(Qt::FramelessWindowHint);
#else // OS_MAC_OLD
#ifdef Q_OS_LINUX
setWindowFlags(Qt::FramelessWindowHint | Qt::MaximizeUsingFullscreenGeometryHint);
#endif // OS_MAC_OLD
#else // Q_OS_LINUX
setWindowFlags(Qt::FramelessWindowHint);
#endif // Q_OS_LINUX
moveToScreen();
setAttribute(Qt::WA_NoSystemBackground, true);
setAttribute(Qt::WA_TranslucentBackground, true);
@ -1781,7 +1781,11 @@ void MediaView::displayFinished() {
updateControls();
if (isHidden()) {
psUpdateOverlayed(this);
#ifdef Q_OS_LINUX
showFullScreen();
#else // Q_OS_LINUX
show();
#endif // Q_OS_LINUX
psShowOverAll(this);
activateWindow();
QApplication::setActiveWindow(this);