ignore VR headsets (#1555)

* ignore VR headsets

don't interact with screens that have the non_desktop property set, fixes #1553

* remove superfluous curly braces
This commit is contained in:
wsippel 2023-02-15 15:50:51 +01:00 committed by GitHub
parent f37866eb7e
commit 1992f27a26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1195,6 +1195,10 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR
return true; return true;
} }
// don't touch VR headsets
if (pMonitor->output->non_desktop)
return true;
if (!pMonitor->m_bEnabled) { if (!pMonitor->m_bEnabled) {
pMonitor->onConnect(true); // enable it. pMonitor->onConnect(true); // enable it.
force = true; force = true;