Commit aad767f9 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Fix initialization of ColorManager

There might be some outputs during the initialization of the color
manager, we need to handle this case.
parent 34333804
......@@ -27,6 +27,11 @@ ColorManager::ColorManager(QObject *parent)
: QObject(parent)
, d(new ColorManagerPrivate)
const QVector<AbstractOutput *> outputs = kwinApp()->platform()->enabledOutputs();
for (AbstractOutput *output : outputs) {
connect(kwinApp()->platform(), &Platform::outputEnabled,
this, &ColorManager::handleOutputEnabled);
connect(kwinApp()->platform(), &Platform::outputDisabled,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment