aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 95e5394..dab2156 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -447,6 +447,10 @@ CMainApplication::CMainApplication( int argc, char *argv[] )
fprintf(stderr, "Invalid flag: %s\n", argv[i]);
usage();
} else {
+ if (strncmp(argv[i], "window:", 7) == 0) {
+ printf("window");
+ argv[i] += 7; // "window:".length
+ }
src_window_id = strtol(argv[i], nullptr, 0);
}
}