diff --git a/src/protocols/PresentationTime.cpp b/src/protocols/PresentationTime.cpp index f5a44893..b4fa51c7 100644 --- a/src/protocols/PresentationTime.cpp +++ b/src/protocols/PresentationTime.cpp @@ -64,8 +64,10 @@ void CPresentationFeedback::sendQueued(WP data, const T if (sizeof(time_t) > 4) tv_sec = TIMESPEC.tv_sec >> 32; + uint32_t refreshNs = m_resource->version() == 1 && data->m_monitor->m_vrrActive ? 0 : untilRefreshNs; + if (data->m_wasPresented) - m_resource->sendPresented(sc(tv_sec), sc(TIMESPEC.tv_sec & 0xFFFFFFFF), sc(TIMESPEC.tv_nsec), untilRefreshNs, sc(seq >> 32), + m_resource->sendPresented(sc(tv_sec), sc(TIMESPEC.tv_sec & 0xFFFFFFFF), sc(TIMESPEC.tv_nsec), refreshNs, sc(seq >> 32), sc(seq & 0xFFFFFFFF), sc(flags)); else m_resource->sendDiscarded();