aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-03-24 19:37:37 +0000
committervaxerski <[email protected]>2023-03-24 19:37:37 +0000
commit70e3cb815177df9742ae8318a5a4e38d1e273054 (patch)
treec3e815cebac4c3dd668a1975b349f0fd5a4f6956
parenta80f8f257f05480a3a91e9da14715cb160ed2e0a (diff)
downloadHyprland-70e3cb815177df9742ae8318a5a4e38d1e273054.tar.gz
Hyprland-70e3cb815177df9742ae8318a5a4e38d1e273054.zip
feat: add debug:enable_stdout_logs
-rw-r--r--src/config/ConfigManager.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 37673014..68b6ce22 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -89,13 +89,14 @@ void CConfigManager::setDefaultVars() {
configValues["misc:render_ahead_of_time"].intValue = 0;
configValues["misc:render_ahead_safezone"].intValue = 1;
- configValues["debug:int"].intValue = 0;
- configValues["debug:log_damage"].intValue = 0;
- configValues["debug:overlay"].intValue = 0;
- 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["debug:int"].intValue = 0;
+ configValues["debug:log_damage"].intValue = 0;
+ configValues["debug:overlay"].intValue = 0;
+ configValues["debug:damage_blink"].intValue = 0;
+ configValues["debug:disable_logs"].intValue = 0;
+ configValues["debug:disable_time"].intValue = 1;
+ configValues["debug:enable_stdout_logs"].intValue = 0;
+ configValues["debug:damage_tracking"].intValue = DAMAGE_TRACKING_FULL;
configValues["decoration:rounding"].intValue = 0;
configValues["decoration:blur"].intValue = 1;
@@ -1396,6 +1397,8 @@ void CConfigManager::loadConfigLoadVars() {
// update layout
g_pLayoutManager->switchToLayout(configValues["general:layout"].strValue);
+ Debug::disableStdout = !configValues["debug:enable_stdout_logs"].intValue;
+
for (auto& m : g_pCompositor->m_vMonitors) {
// mark blur dirty
g_pHyprOpenGL->markBlurDirtyForMonitor(m.get());