summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-22 21:45:17 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-22 21:45:17 +0100
commit47eac4be1cde424f12e942d58813a10869bfb169 (patch)
tree958d0ff20c7dd04f5af2621e0709439adbdc10bc /src/helpers
parent29958677606ae3bc46b871303f2b2d956db90bfc (diff)
disable adaptive sync with no_vfr off
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/Monitor.cpp3
-rw-r--r--src/helpers/Monitor.hpp1
2 files changed, 4 insertions, 0 deletions
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;