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:
John Preston 2018-08-04 21:10:52 +03:00
parent a241e10208
commit b4aa213c64
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}