fixes
This commit is contained in:
parent
24de6d4133
commit
71f458b7f2
2 changed files with 6 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ int main(int argc, char *argv[]) {
|
||||||
int output_type = OUTPUT_WINDOW;
|
int output_type = OUTPUT_WINDOW;
|
||||||
bool currently_reading_output = false;
|
bool currently_reading_output = false;
|
||||||
char **output_list = NULL;
|
char **output_list = NULL;
|
||||||
int output_count = 0;
|
int output_count;
|
||||||
// syntax: --window for a normal window or --layer for a wallpaper
|
// syntax: --window for a normal window or --layer for a wallpaper
|
||||||
for (int i = 1; i < argc; i++) {
|
for (int i = 1; i < argc; i++) {
|
||||||
if (strcmp("--window", argv[i]) == 0) {
|
if (strcmp("--window", argv[i]) == 0) {
|
||||||
|
|
@ -28,7 +28,8 @@ int main(int argc, char *argv[]) {
|
||||||
currently_reading_output = false;
|
currently_reading_output = false;
|
||||||
}
|
}
|
||||||
else if (strcmp("--output", argv[i]) == 0) {
|
else if (strcmp("--output", argv[i]) == 0) {
|
||||||
output_list = &argv[i];
|
output_count = 0;
|
||||||
|
output_list = &argv[i + 1];
|
||||||
currently_reading_output = true;
|
currently_reading_output = true;
|
||||||
}
|
}
|
||||||
else if (strcmp("--", argv[i]) == 0) {
|
else if (strcmp("--", argv[i]) == 0) {
|
||||||
|
|
|
||||||
|
|
@ -508,6 +508,9 @@ static const struct wl_registry_listener wl_registry_listener = {
|
||||||
|
|
||||||
/// Initializes wayland and creates an opengl context
|
/// Initializes wayland and creates an opengl context
|
||||||
struct client_state* wayland_init(int output_type, char *output_list[], int output_list_len) {
|
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));
|
struct client_state *state = malloc(sizeof(struct client_state));
|
||||||
state->running = 1;
|
state->running = 1;
|
||||||
state->output_type = output_type;
|
state->output_type = output_type;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue