mirror of
https://github.com/swaywm/sway.git
synced 2024-11-13 14:04:11 +01:00
expect exactly one xkb arg
This commit is contained in:
parent
f16aa3c0ad
commit
b8261ab24b
@ -7,7 +7,7 @@
|
|||||||
struct cmd_results *input_cmd_xkb_layout(int argc, char **argv) {
|
struct cmd_results *input_cmd_xkb_layout(int argc, char **argv) {
|
||||||
sway_log(L_DEBUG, "xkb layout for device: %s", current_input_config->identifier);
|
sway_log(L_DEBUG, "xkb layout for device: %s", current_input_config->identifier);
|
||||||
struct cmd_results *error = NULL;
|
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;
|
return error;
|
||||||
}
|
}
|
||||||
if (!current_input_config) {
|
if (!current_input_config) {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
struct cmd_results *input_cmd_xkb_model(int argc, char **argv) {
|
struct cmd_results *input_cmd_xkb_model(int argc, char **argv) {
|
||||||
sway_log(L_DEBUG, "xkb model for device: %s", current_input_config->identifier);
|
sway_log(L_DEBUG, "xkb model for device: %s", current_input_config->identifier);
|
||||||
struct cmd_results *error = NULL;
|
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;
|
return error;
|
||||||
}
|
}
|
||||||
if (!current_input_config) {
|
if (!current_input_config) {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
struct cmd_results *input_cmd_xkb_options(int argc, char **argv) {
|
struct cmd_results *input_cmd_xkb_options(int argc, char **argv) {
|
||||||
sway_log(L_DEBUG, "xkb options for device: %s", current_input_config->identifier);
|
sway_log(L_DEBUG, "xkb options for device: %s", current_input_config->identifier);
|
||||||
struct cmd_results *error = NULL;
|
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;
|
return error;
|
||||||
}
|
}
|
||||||
if (!current_input_config) {
|
if (!current_input_config) {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
struct cmd_results *input_cmd_xkb_rules(int argc, char **argv) {
|
struct cmd_results *input_cmd_xkb_rules(int argc, char **argv) {
|
||||||
sway_log(L_DEBUG, "xkb rules for device: %s", current_input_config->identifier);
|
sway_log(L_DEBUG, "xkb rules for device: %s", current_input_config->identifier);
|
||||||
struct cmd_results *error = NULL;
|
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;
|
return error;
|
||||||
}
|
}
|
||||||
if (!current_input_config) {
|
if (!current_input_config) {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
struct cmd_results *input_cmd_xkb_variant(int argc, char **argv) {
|
struct cmd_results *input_cmd_xkb_variant(int argc, char **argv) {
|
||||||
sway_log(L_DEBUG, "xkb variant for device: %s", current_input_config->identifier);
|
sway_log(L_DEBUG, "xkb variant for device: %s", current_input_config->identifier);
|
||||||
struct cmd_results *error = NULL;
|
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;
|
return error;
|
||||||
}
|
}
|
||||||
if (!current_input_config) {
|
if (!current_input_config) {
|
||||||
|
Loading…
Reference in New Issue
Block a user