wayland/output: return all bound wl_output instances in outputResourceFrom (#13315)
ref https://github.com/hyprwm/Hyprland/discussions/13301
This commit is contained in:
parent
8b17a7404b
commit
d91952c555
6 changed files with 46 additions and 24 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue