diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-26 15:16:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-26 15:16:36 +0100 |
| commit | 5ba33f846129f3e6c0505b19f94634b24505e828 (patch) | |
| tree | aaacabe678006040c342935481a86607c66607fd /src/managers/ProtocolManager.cpp | |
| parent | 329b2b356dd92ac07f4e2aa69cbce82ee9ba9d19 (diff) | |
config/lua: init lua config manager, use lua if available (#13817)
Adds a new lua config manager, which will automatically be used if there is a lua config present.
Diffstat (limited to 'src/managers/ProtocolManager.cpp')
| -rw-r--r-- | src/managers/ProtocolManager.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/managers/ProtocolManager.cpp b/src/managers/ProtocolManager.cpp index a2b34ced..3be4523d 100644 --- a/src/managers/ProtocolManager.cpp +++ b/src/managers/ProtocolManager.cpp @@ -108,11 +108,10 @@ void CProtocolManager::onMonitorModeChange(PHLMONITOR pMonitor) { CProtocolManager::CProtocolManager() { - static const auto PENABLECM = CConfigValue<Hyprlang::INT>("render:cm_enabled"); - static const auto PDEBUGCM = CConfigValue<Hyprlang::INT>("debug:full_cm_proto"); - static const auto PCMV1_2 = CConfigValue<Hyprlang::INT>("experimental:wp_cm_1_2"); - - static const auto PENABLECT = CConfigValue<Hyprlang::INT>("render:commit_timing_enabled"); + static const auto PENABLECM = CConfigValue<Config::INTEGER>("render:cm_enabled"); + static const auto PDEBUGCM = CConfigValue<Config::INTEGER>("debug:full_cm_proto"); + static const auto PCMV1_2 = CConfigValue<Config::INTEGER>("experimental:wp_cm_1_2"); + static const auto PENABLECT = CConfigValue<Config::INTEGER>("render:commit_timing_enabled"); // Outputs are a bit dumb, we have to agree. static auto P = Event::bus()->m_events.monitor.added.listen([this](PHLMONITOR M) { |
