mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 14:34:07 +01:00
Don't apply seat config when validating
This commit is contained in:
parent
88a5e26c6e
commit
e168e8f0ff
@ -23,6 +23,8 @@ struct cmd_results *seat_cmd_attach(int argc, char **argv) {
|
|||||||
new_attachment->identifier = strdup(argv[0]);
|
new_attachment->identifier = strdup(argv[0]);
|
||||||
list_add(new_config->attachments, new_attachment);
|
list_add(new_config->attachments, new_attachment);
|
||||||
|
|
||||||
apply_seat_config(new_config);
|
if (!config->validating) {
|
||||||
|
apply_seat_config(new_config);
|
||||||
|
}
|
||||||
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,8 @@ struct cmd_results *seat_cmd_fallback(int argc, char **argv) {
|
|||||||
"Expected 'fallback <true|false>'");
|
"Expected 'fallback <true|false>'");
|
||||||
}
|
}
|
||||||
|
|
||||||
apply_seat_config(new_config);
|
if (!config->validating) {
|
||||||
|
apply_seat_config(new_config);
|
||||||
|
}
|
||||||
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user