From 47eac4be1cde424f12e942d58813a10869bfb169 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 22 Oct 2022 21:45:17 +0100 Subject: disable adaptive sync with no_vfr off --- src/helpers/Monitor.cpp | 3 +++ src/helpers/Monitor.hpp | 1 + 2 files changed, 4 insertions(+) (limited to 'src/helpers') diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index cb128617..9723e3ba 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -136,6 +136,9 @@ void CMonitor::onConnect(bool noRule) { g_pLayoutManager->getCurrentLayout()->recalculateMonitor(ID); g_pEventManager->postEvent(SHyprIPCEvent{"monitoradded", szName}); + + // ensure VRR (will enable if necessary) + g_pConfigManager->ensureVRR(); } void CMonitor::onDisconnect() { diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp index b7442188..7064ee28 100644 --- a/src/helpers/Monitor.hpp +++ b/src/helpers/Monitor.hpp @@ -38,6 +38,7 @@ public: wl_output_transform transform = WL_OUTPUT_TRANSFORM_NORMAL; bool dpmsStatus = true; + bool vrrActive = false; // this can be TRUE even if VRR is not active in the case that this display does not support it. // mirroring CMonitor* pMirrorOf = nullptr; -- cgit v1.2.3