drm-lease: Add Multi-GPU Support (#10099)

This commit is contained in:
Joel-Valenciano
2025-06-13 08:17:32 -05:00
committed by GitHub
parent d14f81e6ac
commit ad85406220
4 changed files with 111 additions and 73 deletions

View File

@@ -175,8 +175,13 @@ void CMonitor::onConnect(bool noRule) {
if (m_output->nonDesktop) {
Debug::log(LOG, "Not configuring non-desktop output");
if (PROTO::lease)
PROTO::lease->offer(m_self.lock());
for (auto& [name, lease] : PROTO::lease) {
if (!lease || m_output->getBackend() != lease->getBackend())
continue;
lease->offer(m_self.lock());
}
return;
}