From aad767f91fd0d530daf433bc50461b78f5096250 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sat, 30 Jan 2021 17:10:40 +0200 Subject: [PATCH] Fix initialization of ColorManager There might be some outputs during the initialization of the color manager, we need to handle this case. --- src/colormanager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/colormanager.cpp b/src/colormanager.cpp index b4641cccbd..73db968bf2 100644 --- a/src/colormanager.cpp +++ b/src/colormanager.cpp @@ -27,6 +27,11 @@ ColorManager::ColorManager(QObject *parent) : QObject(parent) , d(new ColorManagerPrivate) { + const QVector outputs = kwinApp()->platform()->enabledOutputs(); + for (AbstractOutput *output : outputs) { + handleOutputEnabled(output); + } + connect(kwinApp()->platform(), &Platform::outputEnabled, this, &ColorManager::handleOutputEnabled); connect(kwinApp()->platform(), &Platform::outputDisabled,