Changeset View
Changeset View
Standalone View
Standalone View
backends/kwayland/waylandconfig.cpp
Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Line(s) | 216 | { | |||
---|---|---|---|---|---|
221 | } | 221 | } | ||
222 | } | 222 | } | ||
223 | 223 | | |||
224 | KScreen::ConfigPtr WaylandConfig::currentConfig() | 224 | KScreen::ConfigPtr WaylandConfig::currentConfig() | ||
225 | { | 225 | { | ||
226 | // TODO: do this setScreen call less clunky | 226 | // TODO: do this setScreen call less clunky | ||
227 | m_kscreenConfig->setScreen(m_screen->toKScreenScreen(m_kscreenConfig)); | 227 | m_kscreenConfig->setScreen(m_screen->toKScreenScreen(m_kscreenConfig)); | ||
228 | 228 | | |||
229 | auto features = Config::Feature::Writable | Config::Feature::PerOutputScaling; | 229 | const Config::Features features = Config::Feature::Writable | | ||
230 | Config::Feature::PerOutputScaling | | ||||
231 | Config::Feature::OutputReplication; | ||||
230 | m_kscreenConfig->setSupportedFeatures(features); | 232 | m_kscreenConfig->setSupportedFeatures(features); | ||
231 | m_kscreenConfig->setValid(m_connection->display()); | 233 | m_kscreenConfig->setValid(m_connection->display()); | ||
232 | 234 | | |||
233 | KScreen::ScreenPtr screen = m_kscreenConfig->screen(); | 235 | KScreen::ScreenPtr screen = m_kscreenConfig->screen(); | ||
234 | m_screen->updateKScreenScreen(screen); | 236 | m_screen->updateKScreenScreen(screen); | ||
235 | 237 | | |||
236 | //Removing removed outputs | 238 | //Removing removed outputs | ||
237 | const KScreen::OutputList outputs = m_kscreenConfig->outputs(); | 239 | const KScreen::OutputList outputs = m_kscreenConfig->outputs(); | ||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |