diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-26 22:45:55 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-26 22:45:55 +0100 |
commit | 5798c22da8ab204de46054871541e4363b6319e3 (patch) | |
tree | 03f750585a27b4b2c3e1887a977c5829a1691d64 /src/config.c | |
parent | c8fdae6e43569b32def2f5faa6cdd1d6973d12dd (diff) |
Fix multiple output handling.
The --output option can be passed to select a specific output to appear
on. Which output is chosen otherwise is currently random, as I don't
know yet how to determine which one the user's currently on.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 49ffe03..8ec6de4 100644 --- a/src/config.c +++ b/src/config.c @@ -237,6 +237,8 @@ bool parse_option(struct tofi *tofi, const char *filename, size_t lineno, const tofi->window.entry.background_color = parse_color(filename, lineno, value, &err); } else if (strcasecmp(option, "corner-radius") == 0) { tofi->window.entry.corner_radius = parse_uint32(filename, lineno, value, &err); + } else if (strcasecmp(option, "output") == 0) { + snprintf(tofi->target_output_name, N_ELEM(tofi->target_output_name), "%s", value); } else if (strcasecmp(option, "font") == 0) { snprintf(tofi->window.entry.font_name, N_ELEM(tofi->window.entry.font_name), "%s", value); } else if (strcasecmp(option, "font-size") == 0) { |