Use more compatible flags

This commit is contained in:
Ximi1970
2021-10-10 20:54:22 +02:00
parent b1d44791fb
commit 8a0b9e1755

View File

@@ -144,7 +144,12 @@ PreferencesDialog::PreferencesDialog( SysTrayXLink *link, Preferences *pref, QWi
/*
* Dialog on top
*/
setWindowFlag( Qt::WindowStaysOnTopHint );
Qt::WindowFlags flags = windowFlags();
flags |= Qt::WindowStaysOnTopHint;
#ifdef Q_OS_UNIX
flags |= Qt::X11BypassWindowManagerHint;
#endif
setWindowFlags( flags );
}