fixing mediaview fullscreen on X11

This commit is contained in:
Jiachen YANG 2019-01-25 18:22:25 +09:00 committed by John Preston
parent add2356c8a
commit 0681d10c51
1 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ MediaView::MediaView()
}); });
handleAuthSessionChange(); handleAuthSessionChange();
setWindowFlags(Qt::FramelessWindowHint); setWindowFlags(Qt::FramelessWindowHint | Qt::MaximizeUsingFullscreenGeometryHint);
moveToScreen(); moveToScreen();
setAttribute(Qt::WA_NoSystemBackground, true); setAttribute(Qt::WA_NoSystemBackground, true);
setAttribute(Qt::WA_TranslucentBackground, true); setAttribute(Qt::WA_TranslucentBackground, true);
@ -1777,7 +1777,7 @@ void MediaView::displayFinished() {
updateControls(); updateControls();
if (isHidden()) { if (isHidden()) {
psUpdateOverlayed(this); psUpdateOverlayed(this);
show(); showFullScreen();
psShowOverAll(this); psShowOverAll(this);
activateWindow(); activateWindow();
QApplication::setActiveWindow(this); QApplication::setActiveWindow(this);