From 0681d10c513e78357b3f20abbb14dec99ba55470 Mon Sep 17 00:00:00 2001 From: Jiachen YANG Date: Fri, 25 Jan 2019 18:22:25 +0900 Subject: [PATCH] fixing mediaview fullscreen on X11 --- Telegram/SourceFiles/mediaview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/mediaview.cpp b/Telegram/SourceFiles/mediaview.cpp index f6f387df1..75c74a8da 100644 --- a/Telegram/SourceFiles/mediaview.cpp +++ b/Telegram/SourceFiles/mediaview.cpp @@ -137,7 +137,7 @@ MediaView::MediaView() }); handleAuthSessionChange(); - setWindowFlags(Qt::FramelessWindowHint); + setWindowFlags(Qt::FramelessWindowHint | Qt::MaximizeUsingFullscreenGeometryHint); moveToScreen(); setAttribute(Qt::WA_NoSystemBackground, true); setAttribute(Qt::WA_TranslucentBackground, true); @@ -1777,7 +1777,7 @@ void MediaView::displayFinished() { updateControls(); if (isHidden()) { psUpdateOverlayed(this); - show(); + showFullScreen(); psShowOverAll(this); activateWindow(); QApplication::setActiveWindow(this);