[platforms/x11/standalone] Fix stored refresh rate

Summary:
With 1a11abc821 X11 standalone plugin uses the AbstractOutput interface for
managing its outputs. In there the refresh rate is stored in 1/μs.

Test Plan: currentRefreshRate() provides correct rate.

Reviewers: #kwin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D23265
This commit is contained in:
Roman Gilg 2019-08-19 16:28:27 +02:00
parent 506b9b2866
commit 99d921707f
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ public:
void setGeometry(QRect set);
/**
* Current refresh rate in 1/ms.
* Current refresh rate in 1/μs = 1000/ms.
*/
int refreshRate() const override;
void setRefreshRate(int set);

View file

@ -528,7 +528,7 @@ void X11StandalonePlatform::doUpdateOutputs()
o->setCrtc(crtc);
o->setGammaRampSize(gamma.isNull() ? 0 : gamma->size);
o->setGeometry(geo);
o->setRefreshRate(refreshRate);
o->setRefreshRate(refreshRate * 1000);
QString name;
for (int j = 0; j < info->num_outputs; ++j) {