Changeset View
Changeset View
Standalone View
Standalone View
backends/kwayland/waylandoutput.cpp
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Line(s) | 99 | { | |||
---|---|---|---|---|---|
148 | 148 | | |||
149 | if (currentModeId == QLatin1String("-1")) { | 149 | if (currentModeId == QLatin1String("-1")) { | ||
150 | qCWarning(KSCREEN_WAYLAND) << "Could not find the current mode id" << modeList; | 150 | qCWarning(KSCREEN_WAYLAND) << "Could not find the current mode id" << modeList; | ||
151 | } | 151 | } | ||
152 | 152 | | |||
153 | output->setCurrentModeId(currentModeId); | 153 | output->setCurrentModeId(currentModeId); | ||
154 | output->setPreferredModes(preferredModeIds); | 154 | output->setPreferredModes(preferredModeIds); | ||
155 | output->setModes(modeList); | 155 | output->setModes(modeList); | ||
156 | output->setScale(m_device->scale()); | 156 | output->setScale(m_device->scaleF()); | ||
157 | output->setType(Utils::guessOutputType(m_device->model(), m_device->model())); | 157 | output->setType(Utils::guessOutputType(m_device->model(), m_device->model())); | ||
158 | } | 158 | } | ||
159 | 159 | | |||
160 | bool WaylandOutput::setWlConfig(Wl::OutputConfiguration *wlConfig, | 160 | bool WaylandOutput::setWlConfig(Wl::OutputConfiguration *wlConfig, | ||
161 | const KScreen::OutputPtr &output) | 161 | const KScreen::OutputPtr &output) | ||
162 | { | 162 | { | ||
163 | bool changed = false; | 163 | bool changed = false; | ||
164 | 164 | | |||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |