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

@ -27,8 +27,11 @@ CExtWorkspaceGroupResource::CExtWorkspaceGroupResource(WP<CExtWorkspaceManagerRe
const auto& output = PROTO::outputs.at(m_monitor->m_name);
if (auto resource = output->outputResourceFrom(m_resource->client()))
m_resource->sendOutputEnter(resource->getResource()->resource());
if (auto resources = output->outputResourcesFrom(m_resource->client()); !resources.empty()) {
for (const auto& r : resources) {
m_resource->sendOutputEnter(r->getResource()->resource());
}
}
m_listeners.outputBound = output->m_events.outputBound.listen([this](const SP<CWLOutputResource>& output) {
if (output->client() == m_resource->client())