From e2d372d3dfd14ea3210a9e1f5755883bd2578c18 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 3 Apr 2020 12:32:37 +0100 Subject: [PATCH] [krunner] Don't set the position three times in a row Summary: loadConfig calls setFreeFloating. setFreeFloating calls setLocation Reviewers: #plasma, apol Reviewed By: apol Subscribers: pereira.alex, ngraham, broulik, plasma-devel CCBUG: 416145 Tags: #plasma Differential Revision: https://phabricator.kde.org/D28366 --- krunner/view.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/krunner/view.cpp b/krunner/view.cpp index 54cf0947d..5aa824987 100644 --- a/krunner/view.cpp +++ b/krunner/view.cpp @@ -62,7 +62,6 @@ View::View(QWindow *) setTitle(i18n("KRunner")); m_config = KConfigGroup(KSharedConfig::openConfig(QStringLiteral("krunnerrc")), "General"); - setFreeFloating(m_config.readEntry("FreeFloating", false)); loadConfig(); new AppAdaptor(this); @@ -116,12 +115,6 @@ View::View(QWindow *) loadConfig(); }); - if (m_floating) { - setLocation(Plasma::Types::Floating); - } else { - setLocation(Plasma::Types::TopEdge); - } - connect(qGuiApp, &QGuiApplication::focusWindowChanged, this, &View::slotFocusWindowChanged); }