diff --git a/platform.cpp b/platform.cpp index ab0267373c..703d1f30da 100644 --- a/platform.cpp +++ b/platform.cpp @@ -136,7 +136,6 @@ void Platform::requestOutputsChange(KWayland::Server::OutputConfigurationInterfa using Enablement = KWayland::Server::OutputDeviceInterface::Enablement; const auto changes = config->changes(); - bool countChanged = false; //process all non-disabling changes for (auto it = changes.begin(); it != changes.end(); it++) { @@ -151,7 +150,6 @@ void Platform::requestOutputsChange(KWayland::Server::OutputConfigurationInterfa if (changeset->enabledChanged() && changeset->enabled() == Enablement::Enabled) { output->setEnabled(true); - countChanged = true; } output->applyChanges(changeset); } @@ -174,7 +172,6 @@ void Platform::requestOutputsChange(KWayland::Server::OutputConfigurationInterfa continue; } output->setEnabled(false); - countChanged = true; } } emit screens()->changed();