From 71f458b7f204662b878f2cf580076d99fc5b295e Mon Sep 17 00:00:00 2001 From: Rakarake Date: Sun, 22 Feb 2026 18:13:04 +0100 Subject: [PATCH] fixes --- glonkers.c | 5 +++-- wayland.c | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/glonkers.c b/glonkers.c index 8693fa5..28dd566 100644 --- a/glonkers.c +++ b/glonkers.c @@ -16,7 +16,7 @@ int main(int argc, char *argv[]) { int output_type = OUTPUT_WINDOW; bool currently_reading_output = false; char **output_list = NULL; - int output_count = 0; + int output_count; // syntax: --window for a normal window or --layer for a wallpaper for (int i = 1; i < argc; i++) { if (strcmp("--window", argv[i]) == 0) { @@ -28,7 +28,8 @@ int main(int argc, char *argv[]) { currently_reading_output = false; } else if (strcmp("--output", argv[i]) == 0) { - output_list = &argv[i]; + output_count = 0; + output_list = &argv[i + 1]; currently_reading_output = true; } else if (strcmp("--", argv[i]) == 0) { diff --git a/wayland.c b/wayland.c index d2b2fba..26a4a08 100644 --- a/wayland.c +++ b/wayland.c @@ -508,6 +508,9 @@ static const struct wl_registry_listener wl_registry_listener = { /// Initializes wayland and creates an opengl context struct client_state* wayland_init(int output_type, char *output_list[], int output_list_len) { + for (int i = 0; i < output_list_len; i++) { + printf("output name selected: %s\n", output_list[i]); + } struct client_state *state = malloc(sizeof(struct client_state)); state->running = 1; state->output_type = output_type;