Commit 76cd972a authored by Frederik Gladhorn's avatar Frederik Gladhorn

Wayland: fix refresh rate conversion error

Summary: In KWayland, the refresh rate is mHz, so to show it to the user, divide by 1000.

Reviewers: davidedmundson

Reviewed By: davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14374
parent a96028fd
......@@ -148,7 +148,8 @@ void WaylandOutput::updateKScreenOutput(KScreen::OutputPtr &output)
}
mode->setId(modeid);
mode->setRefreshRate(m.refreshRate);
// KWayland gives the refresh rate as int in mHz
mode->setRefreshRate(m.refreshRate / 1000.0);
mode->setSize(m.size);
mode->setName(modename);
if (m.flags.testFlag(KWayland::Client::OutputDevice::Mode::Flag::Current)) {
......
Markdown is supported
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