Lines Matching refs:argv
40 int main(int argc, char **argv)
51 printf("Usage: %s display screenNum displayName [scrnx scrny scrnw scrnh rootx rooty rootw rooth originx originy]\n", argv[0]);
55 if (!(display = XOpenDisplay(argv[1]))) {
56 printf("Cannot open display %s\n", argv[1]);
60 screenNum = strtol(argv[2], NULL, 0);
66 attr.screenWindowXoffset = strtol(argv[4], NULL, 0);
67 attr.screenWindowYoffset = strtol(argv[5], NULL, 0);
68 attr.screenWindowWidth = strtol(argv[6], NULL, 0);
69 attr.screenWindowHeight = strtol(argv[7], NULL, 0);
75 attr.rootWindowXoffset = strtol(argv[8], NULL, 0);
76 attr.rootWindowYoffset = strtol(argv[9], NULL, 0);
77 attr.rootWindowWidth = strtol(argv[10], NULL, 0);
78 attr.rootWindowHeight = strtol(argv[11], NULL, 0);
81 attr.rootWindowXorigin = strtol(argv[12], NULL, 0);
82 attr.rootWindowYorigin = strtol(argv[13], NULL, 0);
100 if (!DMXAddScreen(display, argv[3], mask, &attr, &screenNum))
101 printf("Failed to add %s as screen #%d\n", argv[2], screenNum);