Don't call show() on visible windows

It messes with the geometry
This commit is contained in:
Nicolas Fella
2022-09-01 21:55:44 +02:00
committed by Tobias Fella
parent 4cf5b516d0
commit 736c4b02ed

View File

@@ -290,9 +290,12 @@ int main(int argc, char *argv[])
[&engine](const QStringList &arguments, const QString &workingDirectory) {
Q_UNUSED(workingDirectory);
// Raise windows
QWindow *window = windowFromEngine(&engine);
window->show();
if (!window->isVisible()) {
window->show();
}
raiseWindow(window);
// Open matrix uri