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;
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue