Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_backend.cpp
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | 134 | { | |||
---|---|---|---|---|---|
139 | m_dpmsFilter.reset(new DpmsInputEventFilter(this)); | 139 | m_dpmsFilter.reset(new DpmsInputEventFilter(this)); | ||
140 | input()->prependInputEventFilter(m_dpmsFilter.data()); | 140 | input()->prependInputEventFilter(m_dpmsFilter.data()); | ||
141 | } | 141 | } | ||
142 | 142 | | |||
143 | void DrmBackend::turnOutputsOn() | 143 | void DrmBackend::turnOutputsOn() | ||
144 | { | 144 | { | ||
145 | m_dpmsFilter.reset(); | 145 | m_dpmsFilter.reset(); | ||
146 | for (auto it = m_enabledOutputs.constBegin(), end = m_enabledOutputs.constEnd(); it != end; it++) { | 146 | for (auto it = m_enabledOutputs.constBegin(), end = m_enabledOutputs.constEnd(); it != end; it++) { | ||
147 | (*it)->setDpms(DrmOutput::DpmsMode::On); | 147 | (*it)->updateDpms(KWayland::Server::OutputInterface::DpmsMode::On); | ||
148 | } | 148 | } | ||
149 | } | 149 | } | ||
150 | 150 | | |||
151 | void DrmBackend::checkOutputsAreOn() | 151 | void DrmBackend::checkOutputsAreOn() | ||
152 | { | 152 | { | ||
153 | if (m_dpmsFilter.isNull()) { | 153 | if (m_dpmsFilter.isNull()) { | ||
154 | // already disabled, all outputs are on | 154 | // already disabled, all outputs are on | ||
155 | return; | 155 | return; | ||
▲ Show 20 Lines • Show All 635 Lines • Show Last 20 Lines |