X-Git-Url: https://git.ao2.it/xicursorset.git/blobdiff_plain/a2fd2034bfc16e99c2cdd2937f85c72f49af4ab2..e295469f16223c351d0048827f86ffdf482f4e8f:/xicursorset.c diff --git a/xicursorset.c b/xicursorset.c index 92c90fd..7c18c0f 100644 --- a/xicursorset.c +++ b/xicursorset.c @@ -19,6 +19,7 @@ #include #include +#include #include #include #include @@ -38,7 +39,8 @@ int main(int argc, char *argv[]) Cursor cursor; if (argc < 3 || argc > 4) { - printf("usage: xicursor []\n"); + printf("usage: %s []\n", + basename(argv[0])); return 1; } @@ -70,14 +72,15 @@ int main(int argc, char *argv[]) } - if (argc == 4) + if (argc == 4) { theme = argv[3]; - else + } else { theme = XcursorGetTheme(dpy); if (theme == NULL) { fprintf(stderr, "Can't get cursor theme.\n"); return EXIT_FAILURE; } + } image = XcursorShapeLoadImage(shape, theme, size); if (image == NULL) {