aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorwsippel <[email protected]>2023-02-15 15:50:51 +0100
committerGitHub <[email protected]>2023-02-15 14:50:51 +0000
commit1992f27a269c573517cc13f70ee0f4f7055897cb (patch)
treea5c43e44a619cca99764cef7e8173d6492aa7818
parentf37866eb7ecf0ddb9b1924cbbc15af90143a24d3 (diff)
downloadHyprland-1992f27a269c573517cc13f70ee0f4f7055897cb.tar.gz
Hyprland-1992f27a269c573517cc13f70ee0f4f7055897cb.zip
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
-rw-r--r--src/render/Renderer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 9efb07c8..f33d1e3a 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -1195,6 +1195,10 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR
return true;
}
+ // don't touch VR headsets
+ if (pMonitor->output->non_desktop)
+ return true;
+
if (!pMonitor->m_bEnabled) {
pMonitor->onConnect(true); // enable it.
force = true;