buffyboard: track virtual terminals with /sys/class/tty/tty0/active

This commit is contained in:
Vladimir Stoiakin 2025-07-03 14:19:10 +00:00 committed by Johannes Marbach
parent d0ec4777cc
commit c4b3729047
12 changed files with 283 additions and 335 deletions

View file

@ -63,6 +63,10 @@ static int parsing_handler(void* user_data, const char* section, const char* key
if (bbx_config_parse_bool(value, &(opts->quirks.fbdev_force_refresh))) {
return 1;
}
} else if (strcmp(key, "ignore_unused_terminals") == 0) {
if (bbx_config_parse_bool(value, &(opts->quirks.ignore_unused_terminals))) {
return 1;
}
}
}
@ -80,6 +84,7 @@ void bb_config_init_opts(bb_config_opts *opts) {
opts->input.pointer = true;
opts->input.touchscreen = true;
opts->quirks.fbdev_force_refresh = false;
opts->quirks.ignore_unused_terminals = true;
}
void bb_config_parse_directory(const char *path, bb_config_opts *opts) {