mirror of
https://github.com/swaywm/sway.git
synced 2026-04-01 07:16:02 -04:00
Replace expensive seat_get_config() functions with pointer
This commit is contained in:
parent
980a4e0211
commit
6b87ec4aea
7 changed files with 30 additions and 100 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue