diff options
Diffstat (limited to 'sway/commands/seat.c')
-rw-r--r-- | sway/commands/seat.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sway/commands/seat.c b/sway/commands/seat.c index 5abb19b0..56acd204 100644 --- a/sway/commands/seat.c +++ b/sway/commands/seat.c | |||
@@ -26,9 +26,16 @@ struct cmd_results *cmd_seat(int argc, char **argv) { | |||
26 | 26 | ||
27 | struct cmd_results *res = config_subcommand(argv + 1, argc - 1, | 27 | struct cmd_results *res = config_subcommand(argv + 1, argc - 1, |
28 | seat_handlers, sizeof(seat_handlers)); | 28 | seat_handlers, sizeof(seat_handlers)); |
29 | if (res && res->status != CMD_SUCCESS) { | ||
30 | free_seat_config(config->handler_context.seat_config); | ||
31 | config->handler_context.seat_config = NULL; | ||
32 | return res; | ||
33 | } | ||
29 | 34 | ||
30 | free_seat_config(config->handler_context.seat_config); | 35 | struct seat_config *sc = |
31 | config->handler_context.seat_config = NULL; | 36 | store_seat_config(config->handler_context.seat_config); |
37 | input_manager_apply_seat_config(sc); | ||
32 | 38 | ||
33 | return res; | 39 | config->handler_context.seat_config = NULL; |
40 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | ||
34 | } | 41 | } |