diff options
| author | Alec LeFors <alefors@hey.com> | 2022-08-27 17:10:13 -0400 |
|---|---|---|
| committer | Alec LeFors <alefors@hey.com> | 2022-08-27 17:10:13 -0400 |
| commit | 59d7cfcd02a7546a54ff3076cdd7d5de821a81c8 (patch) | |
| tree | 1a6ba7a38e79ebff56c59d1813461b923169c210 /src/helpers/Monitor.cpp | |
| parent | f7c741317fc2084cd63d007292066292585422ad (diff) | |
implemented DRM leasing for VR headsets
Diffstat (limited to 'src/helpers/Monitor.cpp')
| -rw-r--r-- | src/helpers/Monitor.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 7359e6b7..84a571a8 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -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; |
