Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_backend.cpp
Show First 20 Lines • Show All 437 Lines • ▼ Show 20 Line(s) | 432 | { | |||
---|---|---|---|---|---|
438 | const auto configGroup = outputGroup.group(uuid); | 438 | const auto configGroup = outputGroup.group(uuid); | ||
439 | qCDebug(KWIN_DRM) << "Reading output configuration for" << uuid; | 439 | qCDebug(KWIN_DRM) << "Reading output configuration for" << uuid; | ||
440 | // default position goes from left to right | 440 | // default position goes from left to right | ||
441 | QPoint pos(0, 0); | 441 | QPoint pos(0, 0); | ||
442 | for (auto it = m_outputs.begin(); it != m_outputs.end(); ++it) { | 442 | for (auto it = m_outputs.begin(); it != m_outputs.end(); ++it) { | ||
443 | const auto outputConfig = configGroup.group((*it)->uuid()); | 443 | const auto outputConfig = configGroup.group((*it)->uuid()); | ||
444 | (*it)->setGlobalPos(outputConfig.readEntry<QPoint>("Position", pos)); | 444 | (*it)->setGlobalPos(outputConfig.readEntry<QPoint>("Position", pos)); | ||
445 | // TODO: add mode | 445 | // TODO: add mode | ||
446 | pos.setX(pos.x() + (*it)->size().width()); | 446 | (*it)->setScale(outputConfig.readEntry("Scale", 1.0)); | ||
447 | pos.setX(pos.x() + (*it)->geometry().width()); | ||||
447 | } | 448 | } | ||
448 | } | 449 | } | ||
449 | 450 | | |||
450 | QByteArray DrmBackend::generateOutputConfigurationUuid() const | 451 | QByteArray DrmBackend::generateOutputConfigurationUuid() const | ||
451 | { | 452 | { | ||
452 | auto it = m_outputs.constBegin(); | 453 | auto it = m_outputs.constBegin(); | ||
453 | if (m_outputs.size() == 1) { | 454 | if (m_outputs.size() == 1) { | ||
454 | // special case: one output | 455 | // special case: one output | ||
▲ Show 20 Lines • Show All 269 Lines • Show Last 20 Lines |