I think this is ok

This commit is contained in:
Rakarake 2025-12-28 19:57:50 +01:00
parent 98f7c29b44
commit 8621bb0b0b

View file

@ -30,10 +30,10 @@ int main(int argc, char *argv[]) {
int output_type = OUTPUT_WINDOW;
// syntax: --window for a normal window or --layer for a wallpaper
for (int i = 1; i < argc; i++) {
if (strncmp("--window", argv[i], strlen("--window")) == 0) {
if (strcmp("--window", argv[i]) == 0) {
output_type = OUTPUT_WINDOW;
}
else if (strncmp("--layer", argv[i], strlen("--layer")) == 0) {
else if (strcmp("--layer", argv[i]) == 0) {
output_type = OUTPUT_LAYER;
}
else {