Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_backend.cpp
Show First 20 Lines • Show All 381 Lines • ▼ Show 20 Line(s) | 379 | for (auto it = changes.begin(); it != changes.end(); it++) { | |||
---|---|---|---|---|---|
382 | 382 | | |||
383 | auto drmoutput = findOutput(it.key()->uuid()); | 383 | auto drmoutput = findOutput(it.key()->uuid()); | ||
384 | if (drmoutput == nullptr) { | 384 | if (drmoutput == nullptr) { | ||
385 | qCWarning(KWIN_DRM) << "Could NOT find DrmOutput matching " << it.key()->uuid(); | 385 | qCWarning(KWIN_DRM) << "Could NOT find DrmOutput matching " << it.key()->uuid(); | ||
386 | return; | 386 | return; | ||
387 | } | 387 | } | ||
388 | drmoutput->setChanges(changeset); | 388 | drmoutput->setChanges(changeset); | ||
389 | } | 389 | } | ||
390 | emit screens()->changed(); | ||||
390 | } | 391 | } | ||
391 | 392 | | |||
392 | DrmOutput *DrmBackend::findOutput(quint32 connector) | 393 | DrmOutput *DrmBackend::findOutput(quint32 connector) | ||
393 | { | 394 | { | ||
394 | auto it = std::find_if(m_outputs.constBegin(), m_outputs.constEnd(), [connector] (DrmOutput *o) { | 395 | auto it = std::find_if(m_outputs.constBegin(), m_outputs.constEnd(), [connector] (DrmOutput *o) { | ||
395 | return o->m_connector == connector; | 396 | return o->m_connector == connector; | ||
396 | }); | 397 | }); | ||
397 | if (it != m_outputs.constEnd()) { | 398 | if (it != m_outputs.constEnd()) { | ||
▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines |