Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.cpp
Show First 20 Lines • Show All 242 Lines • ▼ Show 20 Line(s) | 240 | if (m_backend->atomicModeSetting()) { | |||
---|---|---|---|---|---|
243 | } | 243 | } | ||
244 | } else if (!m_crtc->blank()) { | 244 | } else if (!m_crtc->blank()) { | ||
245 | return false; | 245 | return false; | ||
246 | } | 246 | } | ||
247 | 247 | | |||
248 | setInternal(connector->connector_type == DRM_MODE_CONNECTOR_LVDS || connector->connector_type == DRM_MODE_CONNECTOR_eDP); | 248 | setInternal(connector->connector_type == DRM_MODE_CONNECTOR_LVDS || connector->connector_type == DRM_MODE_CONNECTOR_eDP); | ||
249 | setDpmsSupported(true); | 249 | setDpmsSupported(true); | ||
250 | 250 | | |||
251 | if (internal()) { | 251 | if (isInternal()) { | ||
252 | connect(kwinApp(), &Application::screensCreated, this, | 252 | connect(kwinApp(), &Application::screensCreated, this, | ||
253 | [this] { | 253 | [this] { | ||
254 | connect(screens()->orientationSensor(), &OrientationSensor::orientationChanged, this, &DrmOutput::automaticRotation); | 254 | connect(screens()->orientationSensor(), &OrientationSensor::orientationChanged, this, &DrmOutput::automaticRotation); | ||
255 | } | 255 | } | ||
256 | ); | 256 | ); | ||
257 | } | 257 | } | ||
258 | 258 | | |||
259 | QSize physicalSize = !m_edid.physicalSize.isEmpty() ? m_edid.physicalSize : QSize(connector->mmWidth, connector->mmHeight); | 259 | QSize physicalSize = !m_edid.physicalSize.isEmpty() ? m_edid.physicalSize : QSize(connector->mmWidth, connector->mmHeight); | ||
▲ Show 20 Lines • Show All 945 Lines • Show Last 20 Lines |