mirror of https://github.com/hyprwm/hyprlock.git
core: support desc: prefix for widget monitor options (#470)
This commit is contained in:
parent
a0af542f9b
commit
9c1e9e7db2
|
@ -311,7 +311,8 @@ std::vector<std::unique_ptr<IWidget>>* 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
|
||||
|
|
Loading…
Reference in New Issue