core: support desc: prefix for widget monitor options (#470)

This commit is contained in:
Maximilian Seidler 2024-08-29 10:36:07 +00:00 committed by GitHub
parent a0af542f9b
commit 9c1e9e7db2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -311,7 +311,8 @@ std::vector<std::unique_ptr<IWidget>>* CRenderer::getOrCreateWidgetsFor(const CS
}); });
for (auto& c : CWIDGETS) { for (auto& c : CWIDGETS) {
if (!c.monitor.empty() && c.monitor != surf->output->stringPort && !surf->output->stringDesc.starts_with(c.monitor)) if (!c.monitor.empty() && c.monitor != surf->output->stringPort && !surf->output->stringDesc.starts_with(c.monitor) &&
!surf->output->stringDesc.starts_with("desc:" + c.monitor))
continue; continue;
// by type // by type