Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/egl_gbm_backend.cpp
Context not available. | |||||
155 | 155 | | |||
---|---|---|---|---|---|
156 | void EglGbmBackend::initRemotePresent() | 156 | void EglGbmBackend::initRemotePresent() | ||
157 | { | 157 | { | ||
158 | bool supportRemotePresent = false; | 158 | if(qEnvironmentVariableIsSet("KWIN_REMOTE")) { | ||
159 | const QByteArray remoteOption = qgetenv("KWIN_REMOTE"); | | |||
160 | | ||||
161 | if (!remoteOption.isEmpty()) { | | |||
162 | supportRemotePresent = remoteOption == QByteArrayLiteral("1"); | | |||
163 | } | | |||
164 | | ||||
165 | if(supportRemotePresent) { | | |||
166 | qCDebug(KWIN_DRM) << "Support for remote present enabled"; | 159 | qCDebug(KWIN_DRM) << "Support for remote present enabled"; | ||
167 | m_remoteaccessManager.reset(new RemoteAccessManager); | 160 | m_remoteaccessManager.reset(new RemoteAccessManager); | ||
161 | m_backend->setSoftWareCursor(true); | ||||
168 | } | 162 | } | ||
169 | } | 163 | } | ||
170 | 164 | | |||
Context not available. |