diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 7e44b41d..1cff5280 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -35,9 +35,6 @@ void CConfigManager::setDefaultVars() { configValues["general:main_mod"].strValue = "SUPER"; // exposed to the user for easier configuring configValues["general:main_mod_internal"].intValue = g_pKeybindManager->stringToModMask("SUPER"); // actually used and automatically calculated - configValues["general:damage_tracking"].strValue = "full"; - configValues["general:damage_tracking_internal"].intValue = DAMAGE_TRACKING_FULL; - configValues["general:border_size"].intValue = 1; configValues["general:no_border_on_floating"].intValue = 0; configValues["general:gaps_in"].intValue = 5; @@ -68,6 +65,7 @@ void CConfigManager::setDefaultVars() { configValues["debug:damage_blink"].intValue = 0; configValues["debug:disable_logs"].intValue = 0; configValues["debug:disable_time"].intValue = 1; + configValues["debug:damage_tracking"].intValue = DAMAGE_TRACKING_FULL; configValues["decoration:rounding"].intValue = 0; configValues["decoration:blur"].intValue = 1; @@ -1197,13 +1195,6 @@ void CConfigManager::loadConfigLoadVars() { // Calculate the internal vars configValues["general:main_mod_internal"].intValue = g_pKeybindManager->stringToModMask(configValues["general:main_mod"].strValue); - const auto DAMAGETRACKINGMODE = g_pHyprRenderer->damageTrackingModeFromStr(configValues["general:damage_tracking"].strValue); - if (DAMAGETRACKINGMODE != DAMAGE_TRACKING_INVALID) - configValues["general:damage_tracking_internal"].intValue = DAMAGETRACKINGMODE; - else { - parseError = "invalid value for general:damage_tracking, supported: full, monitor, none"; - configValues["general:damage_tracking_internal"].intValue = DAMAGE_TRACKING_NONE; - } // parseError will be displayed next frame if (parseError != "") diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp index f45c3ec4..60642774 100644 --- a/src/events/Monitors.cpp +++ b/src/events/Monitors.cpp @@ -106,7 +106,7 @@ void Events::listener_monitorFrame(void* owner, void* data) { static std::chrono::high_resolution_clock::time_point endRenderOverlay = std::chrono::high_resolution_clock::now(); static auto *const PDEBUGOVERLAY = &g_pConfigManager->getConfigValuePtr("debug:overlay")->intValue; - static auto *const PDAMAGETRACKINGMODE = &g_pConfigManager->getConfigValuePtr("general:damage_tracking_internal")->intValue; + static auto *const PDAMAGETRACKINGMODE = &g_pConfigManager->getConfigValuePtr("debug:damage_tracking")->intValue; static auto *const PDAMAGEBLINK = &g_pConfigManager->getConfigValuePtr("debug:damage_blink")->intValue; static auto *const PNOVFR = &g_pConfigManager->getConfigValuePtr("misc:no_vfr")->intValue;