From 737ff9f823011a27c1672eccaa99c68f8156377b Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Wed, 5 Nov 2025 20:27:14 -0500 Subject: exit on focus lost option --- config.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.c') 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")) { -- cgit v1.2.3