Changeset View
Changeset View
Standalone View
Standalone View
kded/daemon.cpp
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 88 | { | |||
---|---|---|---|---|---|
108 | m_lidClosedTimer->setInterval(1000); | 108 | m_lidClosedTimer->setInterval(1000); | ||
109 | m_lidClosedTimer->setSingleShot(true); | 109 | m_lidClosedTimer->setSingleShot(true); | ||
110 | connect(m_lidClosedTimer, &QTimer::timeout, this, &KScreenDaemon::lidClosedTimeout); | 110 | connect(m_lidClosedTimer, &QTimer::timeout, this, &KScreenDaemon::lidClosedTimeout); | ||
111 | 111 | | |||
112 | 112 | | |||
113 | connect(Device::self(), &Device::lidClosedChanged, this, &KScreenDaemon::lidClosedChanged); | 113 | connect(Device::self(), &Device::lidClosedChanged, this, &KScreenDaemon::lidClosedChanged); | ||
114 | connect(Device::self(), &Device::resumingFromSuspend, this, | 114 | connect(Device::self(), &Device::resumingFromSuspend, this, | ||
115 | [&]() { | 115 | [&]() { | ||
116 | KScreen::Log::instance()->setContext(QLatin1String("resuming")); | 116 | KScreen::Log::instance()->setContext(QStringLiteral("resuming")); | ||
117 | qCDebug(KSCREEN_KDED) << "Resumed from suspend, checking for screen changes"; | 117 | qCDebug(KSCREEN_KDED) << "Resumed from suspend, checking for screen changes"; | ||
118 | // We don't care about the result, we just want to force the backend | 118 | // We don't care about the result, we just want to force the backend | ||
119 | // to query XRandR so that it will detect possible changes that happened | 119 | // to query XRandR so that it will detect possible changes that happened | ||
120 | // while the computer was suspended, and will emit the change events. | 120 | // while the computer was suspended, and will emit the change events. | ||
121 | new KScreen::GetConfigOperation(KScreen::GetConfigOperation::NoEDID, this); | 121 | new KScreen::GetConfigOperation(KScreen::GetConfigOperation::NoEDID, this); | ||
122 | }); | 122 | }); | ||
123 | connect(Device::self(), &Device::aboutToSuspend, this, | 123 | connect(Device::self(), &Device::aboutToSuspend, this, | ||
124 | [&]() { | 124 | [&]() { | ||
▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines |