From 262b517368de8330298402a1f4b508ff2efdf7b5 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sat, 2 Apr 2022 12:01:39 -0400 Subject: [PATCH] Revert DatabaseOpenDialog to be always on top on Linux Fixes regression due to issues with dialogs appearing above other windows on some Linux Desktop Envs. --- src/gui/DatabaseOpenDialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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