diff --git a/src/gui/DatabaseOpenDialog.cpp b/src/gui/DatabaseOpenDialog.cpp index 1fd4f1c0d7..799e82963e 100644 --- a/src/gui/DatabaseOpenDialog.cpp +++ b/src/gui/DatabaseOpenDialog.cpp @@ -36,6 +36,10 @@ DatabaseOpenDialog::DatabaseOpenDialog(QWidget* parent) { setWindowTitle(tr("Unlock Database - KeePassXC")); setWindowFlags(Qt::Dialog); +#ifdef Q_OS_LINUX + // Linux requires this to overcome some Desktop Environments (also no Quick Unlock) + setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint); +#endif // block input to the main window/application while the dialog is open setWindowModality(Qt::ApplicationModal); #ifdef Q_OS_WIN