Skip to content

Commit

Permalink
Revert DatabaseOpenDialog to be always on top on Linux
Browse files Browse the repository at this point in the history
Fixes regression due to issues with dialogs appearing above other windows on some Linux Desktop Envs.
  • Loading branch information
droidmonkey committed Apr 2, 2022
1 parent 2b8d670 commit d8da81d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/DatabaseOpenDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8da81d

Please sign in to comment.