wayland/output: return all bound wl_output instances in outputResourceFrom (#13315)

ref https://github.com/hyprwm/Hyprland/discussions/13301
This commit is contained in:
Vaxry 2026-02-20 22:31:59 +00:00 committed by GitHub
parent 8b17a7404b
commit d91952c555
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 46 additions and 24 deletions

View file

@ -44,8 +44,11 @@ void CPresentationFeedback::sendQueued(WP<CQueuedPresentationData> data, const t
auto client = m_resource->client();
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());
if LIKELY (auto outputResources = PROTO::outputs.at(data->m_monitor->m_name)->outputResourcesFrom(client); !outputResources.empty()) {
for (const auto& r : outputResources) {
m_resource->sendSyncOutput(r->getResource()->resource());
}
}
}
if (data->m_wasPresented) {