Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_backend.cpp
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 88 | if (m_fd >= 0) { | |||
---|---|---|---|---|---|
95 | qDeleteAll(m_crtcs); | 95 | qDeleteAll(m_crtcs); | ||
96 | qDeleteAll(m_connectors); | 96 | qDeleteAll(m_connectors); | ||
97 | close(m_fd); | 97 | close(m_fd); | ||
98 | } | 98 | } | ||
99 | } | 99 | } | ||
100 | 100 | | |||
101 | void DrmBackend::init() | 101 | void DrmBackend::init() | ||
102 | { | 102 | { | ||
103 | qCInfo(KWIN_DRM) << "Initializing DRM backend"; | ||||
romangg: Unrelated to GBM remote access. Remove. | |||||
103 | LogindIntegration *logind = LogindIntegration::self(); | 104 | LogindIntegration *logind = LogindIntegration::self(); | ||
104 | auto takeControl = [logind, this]() { | 105 | auto takeControl = [logind, this]() { | ||
105 | if (logind->hasSessionControl()) { | 106 | if (logind->hasSessionControl()) { | ||
106 | openDrm(); | 107 | openDrm(); | ||
107 | } else { | 108 | } else { | ||
108 | logind->takeControl(); | 109 | logind->takeControl(); | ||
109 | connect(logind, &LogindIntegration::hasSessionControlChanged, this, &DrmBackend::openDrm); | 110 | connect(logind, &LogindIntegration::hasSessionControlChanged, this, &DrmBackend::openDrm); | ||
110 | } | 111 | } | ||
▲ Show 20 Lines • Show All 673 Lines • ▼ Show 20 Line(s) | 782 | { | |||
784 | s.nospace(); | 785 | s.nospace(); | ||
785 | s << "Name: " << "DRM" << endl; | 786 | s << "Name: " << "DRM" << endl; | ||
786 | s << "Active: " << m_active << endl; | 787 | s << "Active: " << m_active << endl; | ||
787 | s << "Atomic Mode Setting: " << m_atomicModeSetting << endl; | 788 | s << "Atomic Mode Setting: " << m_atomicModeSetting << endl; | ||
788 | return supportInfo; | 789 | return supportInfo; | ||
789 | } | 790 | } | ||
790 | 791 | | |||
791 | } | 792 | } | ||
793 | | ||||
romangg: rm whitespace |
Unrelated to GBM remote access. Remove.