From fdf1612f0f0c3a1ffc221a0d9d589a9b4a2af982 Mon Sep 17 00:00:00 2001 From: Hleb Shauchenka Date: Fri, 22 Aug 2025 11:48:42 +0200 Subject: windowrules: Add `novrr` dynamic window rule (#11370) --- src/config/ConfigManager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/config/ConfigManager.cpp') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 951a5429..7f812a04 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1848,6 +1848,9 @@ void CConfigManager::ensureVRR(PHLMONITOR pMonitor) { return; // ??? bool wantVRR = PWORKSPACE->m_hasFullscreenWindow && (PWORKSPACE->m_fullscreenMode & FSMODE_FULLSCREEN); + if (wantVRR && PWORKSPACE->getFullscreenWindow()->m_windowData.noVRR.valueOrDefault()) + wantVRR = false; + if (wantVRR && USEVRR == 3) { const auto contentType = PWORKSPACE->getFullscreenWindow()->getContentType(); wantVRR = contentType == CONTENT_TYPE_GAME || contentType == CONTENT_TYPE_VIDEO; -- cgit v1.2.3