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

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:
parent a96028fd
......@@ -148,7 +148,8 @@ void WaylandOutput::updateKScreenOutput(KScreen::OutputPtr &output)
// KWayland gives the refresh rate as int in mHz
mode->setRefreshRate(m.refreshRate / 1000.0);
if (m.flags.testFlag(KWayland::Client::OutputDevice::Mode::Flag::Current)) {
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