mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-29 14:50:03 +00:00
fixing mediaview fullscreen on X11
This commit is contained in:
parent
add2356c8a
commit
0681d10c51
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user