Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/hwcomposer/hwcomposer_backend.cpp
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Line(s) | |||||
147 | { | 147 | { | ||
148 | if (!QDBusConnection::sessionBus().connect(QStringLiteral("org.kde.Solid.PowerManagement"), | 148 | if (!QDBusConnection::sessionBus().connect(QStringLiteral("org.kde.Solid.PowerManagement"), | ||
149 | QStringLiteral("/org/kde/Solid/PowerManagement/Actions/BrightnessControl"), | 149 | QStringLiteral("/org/kde/Solid/PowerManagement/Actions/BrightnessControl"), | ||
150 | QStringLiteral("org.kde.Solid.PowerManagement.Actions.BrightnessControl"), | 150 | QStringLiteral("org.kde.Solid.PowerManagement.Actions.BrightnessControl"), | ||
151 | QStringLiteral("brightnessChanged"), this, | 151 | QStringLiteral("brightnessChanged"), this, | ||
152 | SLOT(screenBrightnessChanged(int)))) { | 152 | SLOT(screenBrightnessChanged(int)))) { | ||
153 | qCWarning(KWIN_HWCOMPOSER) << "Failed to connect to brightness control"; | 153 | qCWarning(KWIN_HWCOMPOSER) << "Failed to connect to brightness control"; | ||
154 | } | 154 | } | ||
155 | handleOutputs(); | | |||
156 | } | 155 | } | ||
157 | 156 | | |||
158 | HwcomposerBackend::~HwcomposerBackend() | 157 | HwcomposerBackend::~HwcomposerBackend() | ||
159 | { | 158 | { | ||
160 | if (!m_outputBlank) { | 159 | if (!m_outputBlank) { | ||
161 | toggleBlankOutput(); | 160 | toggleBlankOutput(); | ||
162 | } | 161 | } | ||
163 | } | 162 | } | ||
▲ Show 20 Lines • Show All 394 Lines • Show Last 20 Lines |