From 9c1e9e7db2f2746ad9ee144543a786a4da591c7b Mon Sep 17 00:00:00 2001 From: Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:36:07 +0000 Subject: [PATCH] core: support desc: prefix for widget monitor options (#470) --- src/renderer/Renderer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/Renderer.cpp b/src/renderer/Renderer.cpp index 1ac260f..971c90f 100644 --- a/src/renderer/Renderer.cpp +++ b/src/renderer/Renderer.cpp @@ -311,7 +311,8 @@ std::vector>* CRenderer::getOrCreateWidgetsFor(const CS }); 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; // by type