diff --git a/plugins/platforms/x11/standalone/x11_output.h b/plugins/platforms/x11/standalone/x11_output.h index bb6ac6fbe6..ad16363915 100644 --- a/plugins/platforms/x11/standalone/x11_output.h +++ b/plugins/platforms/x11/standalone/x11_output.h @@ -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); diff --git a/plugins/platforms/x11/standalone/x11_platform.cpp b/plugins/platforms/x11/standalone/x11_platform.cpp index 2ad2a3f0b5..92a8337912 100644 --- a/plugins/platforms/x11/standalone/x11_platform.cpp +++ b/plugins/platforms/x11/standalone/x11_platform.cpp @@ -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) {