From cadf922417dcfd104c73e9648ebcc5d6f31435bf Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Tue, 11 Nov 2025 21:00:59 +0100 Subject: [PATCH] presentation: only send sync output on presented (#12255) as protocol states there is two events. 'presented' or 'discarded'. wp_presentation_feedback::sync_output As presentation can be synchronized to only one output at a time, this event tells which output it was. This event is only sent prior to the presented event. --- src/protocols/PresentationTime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/PresentationTime.cpp b/src/protocols/PresentationTime.cpp index 10803406..9849eb35 100644 --- a/src/protocols/PresentationTime.cpp +++ b/src/protocols/PresentationTime.cpp @@ -43,7 +43,7 @@ bool CPresentationFeedback::good() { void CPresentationFeedback::sendQueued(WP data, const Time::steady_tp& when, uint32_t untilRefreshNs, uint64_t seq, uint32_t reportedFlags) { auto client = m_resource->client(); - if LIKELY (PROTO::outputs.contains(data->m_monitor->m_name)) { + if LIKELY (PROTO::outputs.contains(data->m_monitor->m_name) && data->m_wasPresented) { if LIKELY (auto outputResource = PROTO::outputs.at(data->m_monitor->m_name)->outputResourceFrom(client); outputResource) m_resource->sendSyncOutput(outputResource->getResource()->resource()); }