mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 05:31:59 -07:00
drm-lease: Add Multi-GPU Support (#10099)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user