diff options
| author | Hleb Shauchenka <me@marleb.org> | 2025-08-22 11:48:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-22 10:48:42 +0100 |
| commit | fdf1612f0f0c3a1ffc221a0d9d589a9b4a2af982 (patch) | |
| tree | cc644f9e81ed3cb9df3fd7fbdbdaaf47f8f3286d /src/config/ConfigManager.cpp | |
| parent | 42caff5587b6c43703b3c3d51878f156448994f6 (diff) | |
windowrules: Add `novrr` dynamic window rule (#11370)
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
