Changeset View
Changeset View
Standalone View
Standalone View
src/config.cpp
Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Line(s) | |||||
217 | { | 217 | { | ||
218 | ConfigPtr newConfig(new Config()); | 218 | ConfigPtr newConfig(new Config()); | ||
219 | newConfig->d->screen = d->screen->clone(); | 219 | newConfig->d->screen = d->screen->clone(); | ||
220 | for (const OutputPtr &ourOutput : d->outputs) { | 220 | for (const OutputPtr &ourOutput : d->outputs) { | ||
221 | newConfig->addOutput(ourOutput->clone()); | 221 | newConfig->addOutput(ourOutput->clone()); | ||
222 | } | 222 | } | ||
223 | newConfig->d->primaryOutput = newConfig->d->findPrimaryOutput(); | 223 | newConfig->d->primaryOutput = newConfig->d->findPrimaryOutput(); | ||
224 | newConfig->setSupportedFeatures(supportedFeatures()); | 224 | newConfig->setSupportedFeatures(supportedFeatures()); | ||
225 | newConfig->setTabletModeAvailable(tabletModeAvailable()); | ||||
226 | newConfig->setTabletModeEngaged(tabletModeEngaged()); | ||||
225 | return newConfig; | 227 | return newConfig; | ||
226 | } | 228 | } | ||
227 | 229 | | |||
228 | QString Config::connectedOutputsHash() const | 230 | QString Config::connectedOutputsHash() const | ||
229 | { | 231 | { | ||
230 | QStringList hashedOutputs; | 232 | QStringList hashedOutputs; | ||
231 | 233 | | |||
232 | const auto outputs = connectedOutputs(); | 234 | const auto outputs = connectedOutputs(); | ||
▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines |