mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-27 21:58:16 +01:00
expect exactly one xkb arg
This commit is contained in:
parent
f16aa3c0ad
commit
b8261ab24b
5 changed files with 5 additions and 5 deletions
|
@ -7,7 +7,7 @@
|
|||
struct cmd_results *input_cmd_xkb_layout(int argc, char **argv) {
|
||||
sway_log(L_DEBUG, "xkb layout for device: %s", current_input_config->identifier);
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "xkb_layout", EXPECTED_AT_LEAST, 1))) {
|
||||
if ((error = checkarg(argc, "xkb_layout", EXPECTED_EQUAL_TO, 1))) {
|
||||
return error;
|
||||
}
|
||||
if (!current_input_config) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
struct cmd_results *input_cmd_xkb_model(int argc, char **argv) {
|
||||
sway_log(L_DEBUG, "xkb model for device: %s", current_input_config->identifier);
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "xkb_model", EXPECTED_AT_LEAST, 1))) {
|
||||
if ((error = checkarg(argc, "xkb_model", EXPECTED_EQUAL_TO, 1))) {
|
||||
return error;
|
||||
}
|
||||
if (!current_input_config) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
struct cmd_results *input_cmd_xkb_options(int argc, char **argv) {
|
||||
sway_log(L_DEBUG, "xkb options for device: %s", current_input_config->identifier);
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "xkb_options", EXPECTED_AT_LEAST, 1))) {
|
||||
if ((error = checkarg(argc, "xkb_options", EXPECTED_EQUAL_TO, 1))) {
|
||||
return error;
|
||||
}
|
||||
if (!current_input_config) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
struct cmd_results *input_cmd_xkb_rules(int argc, char **argv) {
|
||||
sway_log(L_DEBUG, "xkb rules for device: %s", current_input_config->identifier);
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "xkb_rules", EXPECTED_AT_LEAST, 1))) {
|
||||
if ((error = checkarg(argc, "xkb_rules", EXPECTED_EQUAL_TO, 1))) {
|
||||
return error;
|
||||
}
|
||||
if (!current_input_config) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
struct cmd_results *input_cmd_xkb_variant(int argc, char **argv) {
|
||||
sway_log(L_DEBUG, "xkb variant for device: %s", current_input_config->identifier);
|
||||
struct cmd_results *error = NULL;
|
||||
if ((error = checkarg(argc, "xkb_variant", EXPECTED_AT_LEAST, 1))) {
|
||||
if ((error = checkarg(argc, "xkb_variant", EXPECTED_EQUAL_TO, 1))) {
|
||||
return error;
|
||||
}
|
||||
if (!current_input_config) {
|
||||
|
|
Loading…
Reference in a new issue