diff options
| author | vaxerski <vaxry@vaxry.net> | 2025-03-18 11:30:01 +0000 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2025-03-18 11:30:08 +0000 |
| commit | cca0f48b74e87f86244f5773c42d9ade84683f3b (patch) | |
| tree | 675a7eb1a9c2964733546b2f68fb94a840de943f /src/config | |
| parent | 60edb376f29d89859072d90e9e4d8660a07caf88 (diff) | |
renderer: add an option to disable cm and auto-skip cm if not necessary
fixes #9641
adds render:cm_enabled default true
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/ConfigDescriptions.hpp | 6 | ||||
| -rw-r--r-- | src/config/ConfigManager.cpp | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp index cdb69446..1cfbf0e1 100644 --- a/src/config/ConfigDescriptions.hpp +++ b/src/config/ConfigDescriptions.hpp @@ -1378,6 +1378,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = { .type = CONFIG_OPTION_BOOL, .data = SConfigOptionDescription::SBoolData{true}, }, + SConfigOptionDescription{ + .value = "render:cm_enabled", + .description = "Enable Color Management pipelines (requires restart to fully take effect)", + .type = CONFIG_OPTION_BOOL, + .data = SConfigOptionDescription::SBoolData{true}, + }, /* * cursor: diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 1c36876d..82fe2d41 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -692,6 +692,7 @@ CConfigManager::CConfigManager() { registerConfigVar("render:xp_mode", Hyprlang::INT{0}); registerConfigVar("render:ctm_animation", Hyprlang::INT{2}); registerConfigVar("render:cm_fs_passthrough", Hyprlang::INT{1}); + registerConfigVar("render:cm_enabled", Hyprlang::INT{1}); registerConfigVar("ecosystem:no_update_news", Hyprlang::INT{0}); registerConfigVar("ecosystem:no_donation_nag", Hyprlang::INT{0}); |
