diff options
| author | Dominick DiMaggio <ddimaggio324@gmail.com> | 2025-09-06 13:43:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-06 19:43:03 +0200 |
| commit | bce43f74eb8e4570d0d043f5fc8257eef7a57399 (patch) | |
| tree | e8e3b1c47a68ee90bec04ee81534e24a7be5f2ce /src/protocols/PresentationTime.cpp | |
| parent | 56dd1124ab30dbc949b1f76e9dc6bbc9c74ef853 (diff) | |
presentation: handle vrr for v1 clients (#11608)
Diffstat (limited to 'src/protocols/PresentationTime.cpp')
| -rw-r--r-- | src/protocols/PresentationTime.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<CQueuedPresentationData> 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<uint32_t>(tv_sec), sc<uint32_t>(TIMESPEC.tv_sec & 0xFFFFFFFF), sc<uint32_t>(TIMESPEC.tv_nsec), untilRefreshNs, sc<uint32_t>(seq >> 32), + m_resource->sendPresented(sc<uint32_t>(tv_sec), sc<uint32_t>(TIMESPEC.tv_sec & 0xFFFFFFFF), sc<uint32_t>(TIMESPEC.tv_nsec), refreshNs, sc<uint32_t>(seq >> 32), sc<uint32_t>(seq & 0xFFFFFFFF), sc<wpPresentationFeedbackKind>(flags)); else m_resource->sendDiscarded(); |
