diff --git a/src/backends/drm/drm_connector.cpp b/src/backends/drm/drm_connector.cpp index 7abe81375e..b1ddbb8a53 100644 --- a/src/backends/drm/drm_connector.cpp +++ b/src/backends/drm/drm_connector.cpp @@ -71,7 +71,7 @@ std::shared_ptr DrmConnectorMode::blob() std::chrono::nanoseconds DrmConnectorMode::vblankTime() const { - return std::chrono::nanoseconds(((m_nativeMode.vsync_end - m_nativeMode.vsync_start) * m_nativeMode.htotal * 1'000'000ULL) / m_nativeMode.clock); + return std::chrono::nanoseconds(((m_nativeMode.vtotal - m_nativeMode.vdisplay) * m_nativeMode.htotal * 1'000'000ULL) / m_nativeMode.clock); } drmModeModeInfo *DrmConnectorMode::nativeMode()