summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authornyx <nnyyxxxx@protonmail.com>2025-03-31 12:06:17 -0400
committerGitHub <noreply@github.com>2025-03-31 18:06:17 +0200
commit2309270752383be30857d9c15cd3e259c4e6ed58 (patch)
treeb99b1571301427f1affde5bdfc3d62e8c6fd0c5b /src/config
parent79b526a04199a05d1e9b0bbb035ba20b652a7a2b (diff)
anr: add config for ping number before popup shows up (#9782)
* anr: make pings configurable makes the pings of the dialog popup configurable
Diffstat (limited to 'src/config')
-rw-r--r--src/config/ConfigDescriptions.hpp6
-rw-r--r--src/config/ConfigManager.cpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/config/ConfigDescriptions.hpp b/src/config/ConfigDescriptions.hpp
index 3e9563ee..234c3743 100644
--- a/src/config/ConfigDescriptions.hpp
+++ b/src/config/ConfigDescriptions.hpp
@@ -1223,6 +1223,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
.type = CONFIG_OPTION_BOOL,
.data = SConfigOptionDescription::SBoolData{true},
},
+ SConfigOptionDescription{
+ .value = "misc:anr_missed_pings",
+ .description = "number of missed pings before showing the ANR dialog",
+ .type = CONFIG_OPTION_INT,
+ .data = SConfigOptionDescription::SRangeData{1, 1, 10},
+ },
/*
* binds:
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 276e6db0..9fae42e1 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -460,6 +460,7 @@ CConfigManager::CConfigManager() {
registerConfigVar("misc:disable_hyprland_qtutils_check", Hyprlang::INT{0});
registerConfigVar("misc:lockdead_screen_delay", Hyprlang::INT{1000});
registerConfigVar("misc:enable_anr_dialog", Hyprlang::INT{1});
+ registerConfigVar("misc:anr_missed_pings", Hyprlang::INT{1});
registerConfigVar("group:insert_after_current", Hyprlang::INT{1});
registerConfigVar("group:focus_removed_window", Hyprlang::INT{1});