diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-11-05 20:27:14 -0500 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-11-06 19:45:21 -0500 |
| commit | 737ff9f823011a27c1672eccaa99c68f8156377b (patch) | |
| tree | 8efd9ecf7a9c13119d17a53d8638c69380e97f74 /config.c | |
| parent | 784f7000f29498e6c111afa78a53950989ee94b6 (diff) | |
exit on focus lost option
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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")) { |
