mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Make MediaView modal with MainWindow transient parent on Linux.
There is hope :) that it will force MediaView to be floating in tiling WMs. Possibly fixes #5048.
This commit is contained in:
@@ -125,6 +125,10 @@ MediaView::MediaView()
|
||||
|
||||
hide();
|
||||
createWinId();
|
||||
if (cPlatform() == dbipLinux32 || cPlatform() == dbipLinux64) {
|
||||
windowHandle()->setTransientParent(App::wnd()->windowHandle());
|
||||
setWindowModality(Qt::WindowModal);
|
||||
}
|
||||
if (cPlatform() != dbipMac && cPlatform() != dbipMacOld) {
|
||||
setWindowState(Qt::WindowFullScreen);
|
||||
}
|
||||
|
Reference in New Issue
Block a user