aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-11-05 20:27:14 -0500
committerJack Jamison <jackqjamison@gmail.com>2025-11-06 19:45:21 -0500
commit737ff9f823011a27c1672eccaa99c68f8156377b (patch)
tree8efd9ecf7a9c13119d17a53d8638c69380e97f74 /config.c
parent784f7000f29498e6c111afa78a53950989ee94b6 (diff)
exit on focus lost option
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.c b/config.c
index 4e6fbd0..33cf9cf 100644
--- a/config.c
+++ b/config.c
@@ -9,6 +9,7 @@
config_t config = {
// default config
.fancy_scroll = false,
+ .exit_on_focus_lost = true,
.min_width = 500,
.font_size = 16,
.text_color = {0.85, 0.85, 0.85, 1.0},
@@ -108,6 +109,8 @@ static int our_ini_handler(void* user, const char* section, const char* name, co
#define MATCH(s, n) strcmp(section, s) == 0 && strcmp(name, n) == 0
if (MATCH("", "fancy_scroll")) {
config->fancy_scroll = parse_bool(value);
+ } else if (MATCH("", "exit_on_focus_lost")) {
+ config->exit_on_focus_lost = parse_bool(value);
} else if (MATCH("", "min_width")) {
config->min_width = atoi(value);
} else if (MATCH("", "font_size")) {