summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.cpp
diff options
context:
space:
mode:
authorJoel-Valenciano <12839406+Joel-Valenciano@users.noreply.github.com>2025-06-13 08:17:32 -0500
committerGitHub <noreply@github.com>2025-06-13 15:17:32 +0200
commitad85406220d88c3de9ceba32f17a25caf101bb45 (patch)
tree217258fcecf142658bed4be36135c37a95477e1f /src/helpers/Monitor.cpp
parentd14f81e6ac3debd57f8e3e70ead5bb52606a8c90 (diff)
drm-lease: Add Multi-GPU Support (#10099)
Diffstat (limited to 'src/helpers/Monitor.cpp')
-rw-r--r--src/helpers/Monitor.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index 44ac1dcf..c2f1ab5b 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -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;
}