Fix KScreenIntegration::connectedOutputsHash()

We want to ignore non-desktop outputs, not normal outputs.
This commit is contained in:
Vlad Zahorodnii 2023-05-13 16:19:02 +03:00
parent 7580f74d95
commit e217fda7f0

View file

@ -39,7 +39,7 @@ QString connectedOutputsHash(const QVector<Output *> &outputs, bool isLidClosed)
QStringList hashedOutputs;
hashedOutputs.reserve(outputs.count());
for (auto output : std::as_const(outputs)) {
if (output->isPlaceholder() || !output->isNonDesktop()) {
if (output->isPlaceholder() || output->isNonDesktop()) {
continue;
}
if (output->isInternal() && isLidClosed) {