Replace expensive seat_get_config() functions with pointer

This commit is contained in:
iguanajuice 2024-07-30 20:10:53 -04:00
parent 980a4e0211
commit 6b87ec4aea
7 changed files with 30 additions and 100 deletions

View file

@ -37,12 +37,6 @@ struct cmd_results *seat_cmd_hide_cursor(int argc, char **argv) {
}
seat_config->hide_cursor_when_typing = parse_boolean(argv[1], true) ?
HIDE_WHEN_TYPING_ENABLE : HIDE_WHEN_TYPING_DISABLE;
// Invalidate all the caches for this config
struct sway_seat *seat = NULL;
wl_list_for_each(seat, &server.input->seats, link) {
seat->cursor->hide_when_typing = HIDE_WHEN_TYPING_DEFAULT;
}
}
return cmd_results_new(CMD_SUCCESS, NULL);