Changeset View
Changeset View
Standalone View
Standalone View
qt/main.cpp
Context not available. | |||||
PinEntryDialog pinentry(pe, nullptr, 0, true, | PinEntryDialog pinentry(pe, nullptr, 0, true, | ||||
repeatString, visibilityTT, hideTT); | repeatString, visibilityTT, hideTT); | ||||
if (qApp->platformName() == QStringLiteral("wayland")) { | if (qApp->platformName() == QStringLiteral("wayland")) { | ||||
setup_foreground_window(&pinentry, QString::fromLatin1(qgetenv("PINENTRY_GEOM_HINT"))); | setup_foreground_window(&pinentry, QUrl::fromPercentEncoding(qgetenv("PINENTRY_GEOM_HINT").split(' ')[0])); | ||||
} else { | } else { | ||||
setup_foreground_window(&pinentry, pe->parent_wid); | setup_foreground_window(&pinentry, pe->parent_wid); | ||||
} | } | ||||
Context not available. | |||||
box.setTextInteractionFlags(Qt::TextSelectableByMouse); | box.setTextInteractionFlags(Qt::TextSelectableByMouse); | ||||
box.setTimeout(std::chrono::seconds{pe->timeout}); | box.setTimeout(std::chrono::seconds{pe->timeout}); | ||||
if (qApp->platformName() == QStringLiteral("wayland")) { | if (qApp->platformName() == QStringLiteral("wayland")) { | ||||
setup_foreground_window(&box, QString::fromLatin1(qgetenv("PINENTRY_GEOM_HINT"))); | setup_foreground_window(&box, QUrl::fromPercentEncoding(qgetenv("PINENTRY_GEOM_HINT").split(' ')[0])); | ||||
} else { | } else { | ||||
setup_foreground_window(&box, pe->parent_wid); | setup_foreground_window(&box, pe->parent_wid); | ||||
} | } | ||||
Context not available. |