implemented DRM leasing for VR headsets

This commit is contained in:
Alec LeFors
2022-08-27 17:10:13 -04:00
parent f7c741317f
commit 59d7cfcd02
6 changed files with 39 additions and 0 deletions

View File

@@ -56,6 +56,14 @@ void CMonitor::onConnect(bool noRule) {
return;
}
if (output->non_desktop) {
Debug::log(LOG, "Not configuring non-desktop output");
if (g_pCompositor->m_sWRLDRMLeaseMgr) {
wlr_drm_lease_v1_manager_offer_output(g_pCompositor->m_sWRLDRMLeaseMgr, output);
}
return;
}
if (!m_bRenderingInitPassed) {
wlr_output_init_render(output, g_pCompositor->m_sWLRAllocator, g_pCompositor->m_sWLRRenderer);
m_bRenderingInitPassed = true;