From 736c4b02edae3fff46b12a63a0f0cd31596c2320 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 1 Sep 2022 21:55:44 +0200 Subject: [PATCH] Don't call show() on visible windows It messes with the geometry --- src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4e21c2a1e..b65e115be 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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