Commit e90d719e authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

backends/kwayland: Use output name to guess output type

Model doesn't include the connector type.
parent b7c79872
Pipeline #129908 passed with stage
in 3 minutes and 7 seconds
......@@ -182,7 +182,7 @@ void WaylandOutputDevice::updateKScreenOutput(OutputPtr &output)
QSize currentSize = m_mode->size();
output->setSize(output->isHorizontal() ? currentSize : currentSize.transposed());
output->setScale(m_factor);
output->setType(Utils::guessOutputType(m_model, m_model));
output->setType(Utils::guessOutputType(m_outputName, m_outputName));
output->setCapabilities(static_cast<Output::Capabilities>(static_cast<uint32_t>(m_flags)));
output->setOverscan(m_overscan);
output->setVrrPolicy(static_cast<Output::VrrPolicy>(m_vrr_policy));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment