summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.cpp
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/Monitor.cpp
parent29958677606ae3bc46b871303f2b2d956db90bfc (diff)
disable adaptive sync with no_vfr off
Diffstat (limited to 'src/helpers/Monitor.cpp')
-rw-r--r--src/helpers/Monitor.cpp3
1 files changed, 3 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() {