mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-25 00:30:03 +01:00
presentation: handle vrr for v1 clients (#11608)
This commit is contained in:
parent
56dd1124ab
commit
bce43f74eb
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue