drm-lease: Add Multi-GPU Support (#10099)
This commit is contained in:
parent
d14f81e6ac
commit
ad85406220
4 changed files with 111 additions and 73 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue