Show AutoTypeSelectDialog on the active desktop.

This wasn't always the case on X11 with virtual desktops.

Closes #359
This commit is contained in:
Felix Geyer 2015-11-01 23:23:01 +01:00
parent 2fa531745f
commit b02ec98ec6

View File

@ -33,6 +33,8 @@ AutoTypeSelectDialog::AutoTypeSelectDialog(QWidget* parent)
, m_entryActivatedEmitted(false)
{
setAttribute(Qt::WA_DeleteOnClose);
// Places the window on the active (virtual) desktop instead of where the main window is.
setAttribute(Qt::WA_X11BypassTransientForHint);
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint);
setWindowTitle(tr("Auto-Type - KeePassX"));
setWindowIcon(filePath()->applicationIcon());