diff --git a/Telegram/SourceFiles/mediaview.cpp b/Telegram/SourceFiles/mediaview.cpp index 96006f9f7..3e6e43c2e 100644 --- a/Telegram/SourceFiles/mediaview.cpp +++ b/Telegram/SourceFiles/mediaview.cpp @@ -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);