Changeset View
Changeset View
Standalone View
Standalone View
kded/daemon.cpp
Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Line(s) | 298 | if (m_monitoredConfig && m_monitoredConfig->connectedOutputs().count() > 1) { | |||
---|---|---|---|---|---|
299 | message = i18nc("OSD text after XF86Display button press", "Changing Screen Layout"); | 299 | message = i18nc("OSD text after XF86Display button press", "Changing Screen Layout"); | ||
300 | } | 300 | } | ||
301 | 301 | | |||
302 | if (m_buttonTimer->isActive()) { | 302 | if (m_buttonTimer->isActive()) { | ||
303 | qCDebug(KSCREEN_KDED) << "Too fast, cowboy"; | 303 | qCDebug(KSCREEN_KDED) << "Too fast, cowboy"; | ||
304 | return; | 304 | return; | ||
305 | } | 305 | } | ||
306 | 306 | | |||
307 | m_buttonTimer->start(); | 307 | auto action = KScreen::OsdManager::self()->showActionSelector(); | ||
308 | connect(action, &KScreen::OsdAction::selected, | ||||
309 | this, &KScreenDaemon::applyOsdAction); | ||||
308 | } | 310 | } | ||
309 | 311 | | |||
310 | void KScreenDaemon::resetDisplaySwitch() | 312 | void KScreenDaemon::resetDisplaySwitch() | ||
311 | { | 313 | { | ||
312 | qCDebug(KSCREEN_KDED) << "resetDisplaySwitch()"; | 314 | qCDebug(KSCREEN_KDED) << "resetDisplaySwitch()"; | ||
313 | m_iteration = Generator::None; | 315 | m_iteration = Generator::None; | ||
314 | } | 316 | } | ||
315 | 317 | | |||
▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines |