mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05: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:
parent
a241e10208
commit
b4aa213c64
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue