mirror of
https://github.com/NickHu/sway
synced 2024-12-27 21:58:11 +01:00
Merge pull request #3386 from RedSoxFan/seat-reload-wait
reload: apply seat cfgs after reading entire cfg
This commit is contained in:
commit
d06782c5e7
2 changed files with 7 additions and 1 deletions
|
@ -35,7 +35,9 @@ struct cmd_results *cmd_seat(int argc, char **argv) {
|
||||||
|
|
||||||
struct seat_config *sc =
|
struct seat_config *sc =
|
||||||
store_seat_config(config->handler_context.seat_config);
|
store_seat_config(config->handler_context.seat_config);
|
||||||
input_manager_apply_seat_config(sc);
|
if (!config->reading) {
|
||||||
|
input_manager_apply_seat_config(sc);
|
||||||
|
}
|
||||||
|
|
||||||
config->handler_context.seat_config = NULL;
|
config->handler_context.seat_config = NULL;
|
||||||
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||||
|
|
|
@ -463,7 +463,11 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
|
||||||
if (config->swaynag_config_errors.pid > 0) {
|
if (config->swaynag_config_errors.pid > 0) {
|
||||||
swaynag_show(&config->swaynag_config_errors);
|
swaynag_show(&config->swaynag_config_errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
input_manager_verify_fallback_seat();
|
input_manager_verify_fallback_seat();
|
||||||
|
for (int i = 0; i < config->seat_configs->length; i++) {
|
||||||
|
input_manager_apply_seat_config(config->seat_configs->items[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (old_config) {
|
if (old_config) {
|
||||||
|
|
Loading…
Reference in a new issue