renderer: properly treat monitor desc: prefix (#765)

This commit is contained in:
Virt 2025-05-07 09:12:58 +02:00 committed by GitHub
parent fae1c4f6fe
commit 0c5fd97d61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -406,7 +406,7 @@ std::vector<SP<IWidget>>& CRenderer::getOrCreateWidgetsFor(const CSessionLockSur
const auto POUTPUT = surf.m_outputRef.lock(); const auto POUTPUT = surf.m_outputRef.lock();
for (auto& c : CWIDGETS) { for (auto& c : CWIDGETS) {
if (!c.monitor.empty() && c.monitor != POUTPUT->stringPort && !POUTPUT->stringDesc.starts_with(c.monitor) && !POUTPUT->stringDesc.starts_with("desc:" + c.monitor)) if (!c.monitor.empty() && c.monitor != POUTPUT->stringPort && !POUTPUT->stringDesc.starts_with(c.monitor) && !("desc:" + POUTPUT->stringDesc).starts_with(c.monitor))
continue; continue;
// by type // by type