summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compositor/wayland_wrapper/qwloutput.cpp2
-rw-r--r--src/plugins/platforms/wayland_common/qwaylandscreen.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/compositor/wayland_wrapper/qwloutput.cpp b/src/compositor/wayland_wrapper/qwloutput.cpp
index cfde82900..e5123e03b 100644
--- a/src/compositor/wayland_wrapper/qwloutput.cpp
+++ b/src/compositor/wayland_wrapper/qwloutput.cpp
@@ -55,7 +55,7 @@ OutputGlobal::OutputGlobal(struct ::wl_display *display)
{
QScreen *screen = QGuiApplication::primaryScreen();
m_geometry = QRect(QPoint(0, 0), screen->availableGeometry().size());
- m_refreshRate = qRound(screen->refreshRate());
+ m_refreshRate = qRound(screen->refreshRate() * 1000.0);
}
OutputGlobal::~OutputGlobal()
diff --git a/src/plugins/platforms/wayland_common/qwaylandscreen.cpp b/src/plugins/platforms/wayland_common/qwaylandscreen.cpp
index fe0f76ce3..5956c2fd3 100644
--- a/src/plugins/platforms/wayland_common/qwaylandscreen.cpp
+++ b/src/plugins/platforms/wayland_common/qwaylandscreen.cpp
@@ -144,7 +144,7 @@ void QWaylandScreen::output_mode(uint32_t flags, int width, int height, int refr
if (refresh != mRefreshRate) {
mRefreshRate = refresh;
- QWindowSystemInterface::handleScreenRefreshRateChange(screen(), mRefreshRate);
+ QWindowSystemInterface::handleScreenRefreshRateChange(screen(), refreshRate());
}
}