mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Change 'display' to 'output' in swaylock error messages where necessary
This commit is contained in:
parent
644c13de77
commit
34009205e9
1 changed files with 4 additions and 4 deletions
|
@ -293,14 +293,14 @@ int main(int argc, char **argv) {
|
||||||
images = load_image(optarg);
|
images = load_image(optarg);
|
||||||
num_images = -1;
|
num_images = -1;
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "display must be defined for all --images or no --images.\n");
|
fprintf(stderr, "output must be defined for all --images or no --images.\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (num_images == 0) {
|
if (num_images == 0) {
|
||||||
images = calloc(registry->outputs->length, sizeof(char*) * 2);
|
images = calloc(registry->outputs->length, sizeof(char*) * 2);
|
||||||
} else if (num_images == -1) {
|
} else if (num_images == -1) {
|
||||||
fprintf(stderr, "display must be defined for all --images or no --images.\n");
|
fprintf(stderr, "output must be defined for all --images or no --images.\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -397,13 +397,13 @@ int main(int argc, char **argv) {
|
||||||
if (displays_paths[i * 2] != NULL) {
|
if (displays_paths[i * 2] != NULL) {
|
||||||
for (int j = 0;; ++j) {
|
for (int j = 0;; ++j) {
|
||||||
if (j >= json_object_array_length(json_outputs)) {
|
if (j >= json_object_array_length(json_outputs)) {
|
||||||
fprintf(stderr, "%s is not an extant display\n", displays_paths[i * 2]);
|
fprintf(stderr, "%s is not an extant output\n", displays_paths[i * 2]);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct json_object *dsp_name, *at_j = json_object_array_get_idx(json_outputs, j);
|
struct json_object *dsp_name, *at_j = json_object_array_get_idx(json_outputs, j);
|
||||||
if (!json_object_object_get_ex(at_j, "name", &dsp_name)) {
|
if (!json_object_object_get_ex(at_j, "name", &dsp_name)) {
|
||||||
sway_abort("display doesn't have a name field");
|
sway_abort("output doesn't have a name field");
|
||||||
}
|
}
|
||||||
if (!strcmp(displays_paths[i * 2], json_object_get_string(dsp_name))) {
|
if (!strcmp(displays_paths[i * 2], json_object_get_string(dsp_name))) {
|
||||||
((cairo_surface_t**) images)[j] = load_image(displays_paths[i * 2 + 1]);
|
((cairo_surface_t**) images)[j] = load_image(displays_paths[i * 2 + 1]);
|
||||||
|
|
Loading…
Reference in a new issue